Microservices – best practices to retrieve the related data to specific user from the other micro services with the minimal memory/time loss

前端 未结 2 621
醉话见心
醉话见心 2020-11-28 14:16

I am trying to create a microservice architecture using Lumen / Laravel Passport.

I have a multiple dockerized services, which all run as an separa

2条回答
  •  时光说笑
    2020-11-28 14:39

    You likely need to investigate a caching layer inside the client application. You don't want to break your encapsulation, but caching this information as close to where it is used as possible will make a huge difference in optimizing the chattiness of your microservices. Just one point though, ensure that you end up creating a cache, and not a distributed store. Cache's will still need revalidation, and an expiration timeline.

提交回复
热议问题