Lagom and Immutability

Knoldus Blogs

What is Lagom?
Lagom is not in disguise anymore. Everyone who’s following on micro-service architecture knows about Lagom framework. Lagom is an open source framework built with the shifting from monoliths to micro-services-driven application architecture in mind. It abstracts the complexity of building, running and monitoring micro-services driven applications.
The Lagom framework includes Java and Scala APIs to simplify development of microservices. Lagom helps us to build micro-services as reactive systems so that the micro-services are resilient, elastic and scalable from within.

One important concept to follow when using Lagom is immutability. In Lagom, immutable objects are required in several places, such as:

  • Service request and response types
  • Persistent entity commands, events, and states
  • Publish and subscribe messages

What is Immutability?
Immutability is considered as one of the key concept of functional programming. Most of the functional languages like Scala, uses immutable object by default. An immutable…

View original post 916 more words


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s