MongoDB sharded cluster

MongoDB supports horizontal scaling by the use of sharding. A sharded cluster consists of 3 parts: Configuration replica set to store metadata Shard replica set(s) Mongos server as a query router that uses metadata from config replica set to query data from the shard(s) Every replica set can consist of primary and secondary instances. Single […]

MongoDB sharded cluster Read More »

Angular i18n

Angular has support for internationalisation with the @ngx-translate/core module. This and a needed loader can be installed via With this done you need to create a folder src/assets/i18n and place your language json file like en.json in it. Now the translation module and service needs to be configured. Open your app.module.ts file and add the

Angular i18n Read More »

Spring Boot log MDC

Spring Boot contains a quite nice configuration for logback with color coding and good readability. But it lacks logging MDC (Mapped Diagnostic Context) content. I tried around and found a way to append MDC to every logged line by setting the console pattern in my application.properties/yml under logging.pattern.console to Without any MDC set this adds

Spring Boot log MDC Read More »