You see the memory consumption of multiple services growing and it doesn't decrease over time. After profiling the service you notice the memory of the service is released (there's no memory leak), but the unmanaged memory keeps on growing.
When multiple containerized .NET API's are published on one machine, it might be more performant to disable the server garbage collection. This might lead to more CPU usage (in our case this wasn't the case, or it was very minimal), but it will help to reduce the memory usage.
See the docs for more details.
When you have an API that doesn't start and doesn't show an error log.
web.config and set the
ASPNETCORE_DETAILEDERRORS environment variable to
You want to periodically the refresh data in the NgRx Store.
Create a NgRx Effect that retrieves the data via a service every x minutes, this can be done with the RxJS timer operator.
I want to delete a property from an object in a pure (immutable) way.
Use a destructuring assignment to assign the to be removed property to a variable, while cloning the "rest" properties to a new variable.
_ is used to prevent a linter giving the warning "variable is declared but its value is never read".
For more examples see Destructuring assignment on MDN
An action to fetch multiple entities at once, but the service has only an endpoint to fetch one entity at a time.
Use the RxJS merge operator to flatten all request streams and concurrently emit all values to a single output stream.