Imagine that I have 100 users list in the database and I have 100 or more console applications that are using those users to log in somewhere. I need to use a unique user per application, I must not use the same user more than one application. How can I solve this issue, what is the best practice or pattern for that? That means a record has to read only one application/service I have also some requirements/restrictions as I mentioned below.
- Each application/service an instance of a microservice. So, it can be scale-down or scale-up. It means I cannot set a user to a specific application/service in a config file.
- Users in the database can be disabled or removed in the future or added new users. So user count is not fixed.