Invalidating tags in microservices and microfrontend architecture #4838
-
Hi everyone, let me describe my issue. For example, I have general purpose microservice Documents and two microservices MS_A and MS_B which use Documents. Also I have two microfrontends - MF_A with It seems that for now I can only invalidate in I wanted to write a middleware which would configured per microfrontend for resending |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If they all access the same data and influence each other, it doesn't really matter if they are microsystems or a monolith - to the outside they are one system. So I would treat them as one api, not as three. |
Beta Was this translation helpful? Give feedback.
Fot the frontend it's the same dataset. The twitter api and a cookbook api are two different apis.
Twitter's "posts" api and twitter's "users" api are the same api from the perspective of any outside system (and a frontend is very much the definition of "outside"), as a user has posts, and posts can be liked by users. There's a relationship between the types. It doesn't matter if it's split up into microservices, that's an implementation detail.
Then you'll have to prefix your api endpoints with absolute urls and not work relative to one baseUrl.