@rkenmi - Home

Asynchrony vs. Multithreading

Asynchrony Asynchronous programming, also known as event-driven programming, is built on foundations of Futures/promises. The basic idea is that instead of having a thread wait for a blocked call to finish (i.

system designnodejsasynchronyasynchronous programmingmultithreadingsingle threadedfuturepromisesevent loopJavascriptes6

Webpack: Usage Examples

Webpack has been around since 2012 and it is a very popular tool nowadays. You'll see it mentioned in a lot of front-end stacks. I've personally used it to power this blog and a handful of my own React projects such as https://classic-ah.


Forward Proxy and Reverse Proxy

Proxies have a wide variety of use cases with great benefits. In this article, I go over two variations of proxies. Forward Proxy One day, in a school classroom setting, a teacher wants an anonymous survey filled out by all of the students in the classroom.

proxyvpnsystem designreverse proxyforward proxyload balancer

Atomic operations with Elasticsearch

Use Elasticsearch Aliases to switch from one index to another near instantaneously.

databasessearchelasticsearchesatomicitysearch engine

Spring - Injecting more than one bean of the same type

Problem By default, Spring will autowire beans by type. When a bean is created that depends on other beans, it will check for the existence of the required dependencies by types. Creating another bean of the same type will result in a very common exception: NoUniqueBeanDefinitionException.

JavaSpringSpring Beans