How often do we look inside a Gem to see what's inside it? Well - there is SO MUCH to learn from the code. Sanjiv digs inside the Mina gem and unearths the various design patterns that it uses. An excellent article for developers to learn design patterns not from the book but directly from … Continue reading How The Design Patterns Are Used In Mina Gem
Author: Gautam Rege
Pro-tip: Scaling properly with Nginx worker_process and max_pool_size
Sometimes, it the things around us that work but need to be configured properly to scale up. Nginx configuration are just like that.
Shweta talks about her experience with scaling up performance by tweaking the nginx parameters to improve API performance drastically.
This post talks about worker_process and passenger_max_pool_size options for nginx and how these configurations play an important role for scalability.
Recently our client reported that API performance was bad and it was taking a few minutes to respond! But, when we tested this API this was quite efficient and was responding in few milliseconds. What was wrong? As the number of users increased, the number of concurrent requests to the server had also increased. Initially, it was only 100’s of request per second coming to a server but now it was about 4 k requests per second and we realised that we had not scaled our server to handle this load.
When this problem arrived I thought of breaking down the problem in steps.
- First I checked RDS instance. It was using 20%
- I revisited all queries they were optimized enough. So database was not bottleneck
- Sent unauthorized request to the server so with less processing…
View original post 578 more words
How You Can Draw Graphs Fast & Easily With SVG
So often we look for the simple way out. For example, to generate graphs, we search for the best possible libraries and make the front-end un-necessarily heavy. Sometimes, we need to think out of the box and can use SVG to create simple graphs.
Anuja talks exactly about how they used SVG to create simple line and bar charts in their light-weight mobile friendly application.
Do you want to draw a graph in HTML? Are you a backend developer and not a UI developer? How will you go with this? You will surely search for some available library to draw a graph even if graphs are simple. In our project, we also have simple bar and line graphs for weekly and monthly tracking respectively. Initially our UI team designed bar graphs. As is often the case, after few days there was a requirement of line graphs.
I was worried about timelines. We had an option to ask UI team to give us the static graph and integrate the API. But we would need to explain them the requirement in detail and the design. This process seem too time consuming. So I thought, that instead of wasting time in that, it would be better to work on this and learn something new. So I decided to work on this new…
View original post 601 more words
