Hey Software Engineers
Currently we basically have a what I would call "modular monolith".
A diagram would likely look something like this:
What we want to do in the future is being able to deploy each module independently and move to a microservice environment where every module has its own database.
We have a table that is called SysParams
that stores:
- system parameters that are used by all modules (so common sys params)
- system parameters that are only used by the individual modules
The individual system parameters per module can be moved to the modules database, but the common sys params we still want in a dedicated table (without duplicating it in every module).
What would be a good way to achieve this?
I thought about having another "master data service" that provides the common sys params. But what I don't like in this solution is, that I need an additional http call every time. I also thought about calling the "master data service" once in the startup and caching the result inmemory in the modules but I'm also not sure about this approach.
Thank you for your insights on this issue :-)