Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Statelessness

Vinay Rawal answered on March 23, 2023 Popularity 2/10 Helpfulness 1/10

Contents


More Related Answers


Statelessness

0

As per this principle, Microservices should be stateless, meaning that they should not maintain any client-specific state between requests.

For example, if a microservice handles a user’s shopping cart, it should not store any information about the user’s cart between requests, but should retrieve the cart information from a database each time it processes a request.

If I could give just one advice of my years of experience in designing Java services then I would say keep it stateless as long as possible. By not Managing state in your service, you will avoid a lot of problems which comes due to that and you can greatly benefit form things like Caching for performance improvement. 

https://medium.com/javarevisited/10-microservices-design-principles-every-developer-should-know-44f2f69e960f

Popularity 2/10 Helpfulness 1/10 Language whatever
Source: Grepper
Tags: whatever
Link to this answer
Share Copy Link
Contributed on Mar 23 2023
Vinay Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.