Switch the Locations Api event store to in-memory storage because CAP requires MongoDB version to be larger than 4.0 and enable clustering to use the local storage transaction provided by MongoDB
This commit is contained in:
parent
384119eef4
commit
f7b0ddd56c
@ -53,12 +53,7 @@ namespace Microsoft.eShopOnContainers.Services.Locations.API
|
||||
|
||||
services.AddCap(options =>
|
||||
{
|
||||
// using MongoDB as the event storage
|
||||
options.UseMongoDB(configure =>
|
||||
{
|
||||
configure.DatabaseConnection = Configuration["ConnectionString"];
|
||||
configure.DatabaseName= Configuration["Database"];
|
||||
});
|
||||
options.UseInMemoryStorage();
|
||||
|
||||
if (Configuration.GetValue<bool>("AzureServiceBusEnabled"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user