Data Layers
Last updated
Last updated
The persistence of information object for long term operations is based on the implementation of a set of contracts of the management domain of the service.
Since the native support of multi-tenancy of the information, a model is in place to create tenant-specific contexts, provided throug a 'store provider' pattern.
The main contracts used to implement this persistence are the following:
Interface | Description |
---|---|
Although the resolution of the webhook subscriptions is not directly related to the storage of the information, the framework provides a contract to implement the resolution of the subscriptions based on the storage.
In fact, the IWebhookSubscriptionResolver
interface is used by the framework to resolve the subscriptions to a specific event, and in the default implementation, it uses the IWebhookSubscriptionStore
to retrieve the information.
Some advanced scenarios of usage may require to log the delivery results of the webhook notifications, to provide a way to track the delivery status of the notifications.
Even if the logging mechanism doesn't require a specific database (it might be logging on CSV files, JSON, etc.), the framework provides the contract IWebhookDeliveryResultStore
to implement the storage of the delivery results.
The Deveel Webhooks framework provides the following implementations of the storage:
Refere to the specific documentation of each implementation for more details.
Implementation | Description | Subscription Store | Delivery Logging | Multi-Tenant |
---|---|---|---|---|
IWebhookSubscriptionStore
Implements the functions to manage the storage of IWebhookSubscription
information
IWebhookSubscriptionStoreProvider
Provides the means to instantiate a tenant-specific context owning the webhook subscriptions
IWebhookDeliveryResultStore
Implements the functions to manage the storage of webhook delivery results
IWebhookDeliveryResultStoreProvider
Creates tenant-specific scopes for the storage of the webhook delivery results
Implements the storage of the webhook subscriptions and delivery results using MongoDB
An implementation that stores subcriptions and delivery results using the Entity Framework