You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constraint Provider service is a new service
Entity service will check with constraint provider service before its operation
Example:
Entity service will check with constraint provider for limits before creation of entity
Messaging service will check with constraint provider for rate limits and message per second before the publish or subscribe of message.
In this approach , since constraint provider is a separate service, we can move them to API Gateway in future
Approach 2:
Constraint Provider as library , which can wrapped with service layer like logging and metrics . Constraint Provider will be like a middleware. So when ever service request pass through constraint provider, it will check for constraint provided in configuration file.
Example:
Entity service constraint provider middleware will check for limits before creation of entity.
Messaging service will check with constraint provider for rate limits and message per second before the publish or subscribe of message.
Approach 3:
Constraint Provider implementation in Database as Trigger.
Whenever service starts, it should get configuration from source and create new trigger in database.
Common Spec for all approaches:
A configuration can be stored in
TOML file
Database
External System like Stripe
configuration should load to memory on start.
If there is any change in configuration source data, it should automatically update the configuration memory on the fly.
Is your feature request related to a problem? Please describe.
No
Describe the feature you are requesting, as well as the possible use case(s) for it.
Service configuration helps to configure the service as per user need.
Indicate the importance of this feature to you.
Must-have
Anything else?
No response
The text was updated successfully, but these errors were encountered: