O'Reilly logo

Functional and Reactive Domain Modeling by Debasish Ghosh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Being reactive

This chapter covers

  • Introduction to reactive domain models
  • Reactive API design using futures and promises
  • Reactive communication between bounded contexts using asynchronous messaging
  • The stream model with example implementations from Akka Streams
  • The actor model of communication

So far you’ve learned about the virtues of functional programming and how to apply these principles when you design a domain model. This chapter starts the discussion of how to make your functional domain model reactive. You want your model to be responsive to users, elastic for scalability, resilient to failures, and decoupled in time and space using message-driven architectures.[1] This chapter covers various ways of being reactive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required