4 ms·
But if you have nice natural sharding keys for your data (the most common example is something like TenantId), how do bounded contexts help? EDIT: Perhaps you
by balfirevic 6y ago
But if you have nice natural sharding keys for your data (the most common example is something like TenantId), how do bounded contexts help?
EDIT: Perhaps you mean something different by bounded context than what is usually meant in the context of DDD, where they separate groups of entities not data within those entities.
- inopinatus 6y agoNo, I mean exactly that, but tenant_id sounds like a SaaS or a Shopify. Their pods don’t have this kind of scale to begin with, the datasets just don’t have more than a few billion entities. Assuming there’s a “nice natural sharding key” at all already limits scope to a subset of applications, most of which you can stick inside a single instance, rendering the point moot.