deveel / deveel.webhooks

A framework to enable the webhook management for the .NET stack
https://deveel.com
Apache License 2.0
9 stars 3 forks source link

Migrate Multi-Tenant Support to Finbuckle #46

Closed tsutomi closed 10 months ago

tsutomi commented 1 year ago

The current implementation of the MongoDb and the Entity Framework storage layer libraries use a custom-made implementation to support multi-tenancy scenarios, although it is based on the MongoFramework provisioning of the support.

We should consider adopting the streamlined approach of using Finbuckle.MultiTenant framework to support the multi-tenant scenarios to generalize even more capabilities.

Although the MongoDB version is using the mentioned Finbuckle.MultiTenant framework, its usage is not really clean, since the need to resolve the tenant in the background.

Expected Benefits

Relying on a mature and widely used library to support the multi-tenant scenarios should relieve the project from the load of a few important tasks, and it would allow users of the libraries to configure the infrastructure just once. The native and constant support of Finbuckle.MultiTenant for the EntityFramework will also result as a benefit to the project, that will not have to deal with a custom implementation for that storage layer.

Possible Side Effects

Major changes to the MongoDb storage layer will be necessary, and a minor version increase is recommended.

Further Reading

tsutomi commented 10 months ago

The multi-tenant support is now inherited from the Deveel Repository framework.