Collecting Spring Repository metrics using Spring AOP

I have been working for quite sometime on optimizing API’s here at HomeLane. As we grow, it becomes crucial to make sure that our API’s have the lowest possible latency and are written in a performant way. The former depends on many factors, some being out of our control but the latter is in our very hands. In this post I discuss how I collected metrics for our Spring repositories to aid in optimization.

»
Author's profile picture 7-m on spring and db-metrics

Programmatic access to on-demand profiling in Java

When it comes to performance optimization, profiling an application is the only way to gain detailed insights into CPU, memory and IO utilization. Things are pretty straightforward when working locally. You run your app in your favorite ide, hook your favorite profiler to it and life’s good™. But, things soon get complicated when you want to profile apps deployed on another machine or in a container . Issues like firewalls, port forwarding, security, JMX etc. start cropping up and life isn’t as it used to be. This is what I’ll try to alleviate in this blog.

»
Author's profile picture 7-m on profiling

On Performance testing

Brief

  • What is performance testing
  • Deciding on the type of performance test
  • Deciding on tools and metrics
  • Creating a synthetic load
  • Collect metrics by running the synthetic load
  • Analyzing results and fixing bottlenecks
»
Author's profile picture 7-m on testing

Lets scrape some tweets!!1

Want to scrape a handful of tweets? but don’t want to sign up for twitter developer or break your head going through tons of API’s or copy paste one tweet after the other? Then you have come to the right place!

»
Author's profile picture 7-m on scraping