Previously I discussed about the Theory of Bloom Filter and implemented a simple version in Java. Let’s find out how we can implement a Bloom Filter for a distributed production environment.
We will be using Redis with RedisBloom Module to implement it.
While working on providing transaction support @ Fabhotels by using multiple transaction gateways, I needed to make sure that —
How can we solve this problem?
Netflix Ribbon is an Inter Process Communication (IPC) cloud library. Ribbon primarily provides client-side load balancing algorithms.
A while back, I was working on a task that required me to generate a random unique string and use it as an identifier in a database column and I thought to myself, “It’s a trivial task, will be done in 2 minutes!”.
Rakishly, I began to formulate the code.
String id = createRandomString(6) //length 6while(dbRepository.hasId(id)){
id = createRandomString(6)
}
“This code will work. But at what cost?”
Time complexity is O(N *M* k), where N is the size of the db and k is the length of the random string to be generated and M is the number…
Postman is a fantastic tool to quickly test your API(s). However, working in a microservice environment with end points being secured via a token system makes testing a PITA.
Adding a new security token every time the previous one expires slows us down, Here’s how to automate it —
When my foray into Spring-Boot backed Microservices gave HTTP Session an existential crisis, I knew it was time that I should dabble with Spring Sessions.
You have multiple instances of a microservice behind a load balancer and you need the session to be maintained for the user after successful authorization, regardless of which instance is executing the request.
We will focus on Centralized Sessions here.
If the number of concurrent users of your…
I like building stuff.