Multi-tenancy support through Routing Key...
Any Ideas .. how can I inject my routing key... from meta data provider while writing record to ELK?
try
{
await _elasticClient.IndexAsync(
readModelEnvelope.ReadModel,
d =>
{
d = d
.RequestConfiguration(c => c)
.Id(readModelId)
.Index(readModelDescription.IndexName.Value).Routing(new Routing(tenantGuid));
d = isNew
? d.OpType(OpType.Create)
: d.VersionType(VersionType.ExternalGte).Version(readModelEnvelope.Version.GetValueOrDefault());
return d;
},
cancellationToken)
.ConfigureAwait(false);
}
catch (ElasticsearchClientException e)
when (e.Response?.HttpStatusCode == (int)HttpStatusCode.Conflict)
{
throw new OptimisticConcurrencyException(
$"Read model '{readModelId}' updated by another",
e);
}
https://www.elastic.co/blog/found-multi-tenancy, please see the details
Hello there!
We hope you are doing well. We noticed that this issue has not seen any activity in the past 90 days. We consider this issue to be stale and will be closing it within the next seven days.
If you still require assistance with this issue, please feel free to reopen it or create a new issue.
Thank you for your understanding and cooperation.
Best regards, EventFlow
Hello there!
This issue has been closed due to inactivity for seven days. If you believe this issue still needs attention, please feel free to open a new issue or comment on this one to request its reopening.
Thank you for your contribution to this repository.
Best regards, EventFlow