Software Engineer at AVICS · Pune

I build backends that keep working under real load.

Java Backend Developer · IoT & Real-Time Data Platforms

3+ years with Java and Spring Boot: device telemetry over MQTT, billing that never posts a payment twice, and multi-tenant business systems.

Load test · 3,000 meters1 h run
50msg / s
1.0 sp95 lag
1.3 sp95 cut-off
0 5 10 s 0 30 60 min 11.6 s start-up wave (~90 s)
p95 processing lag over a 1-hour test. The start-up spike led to a fix proposal; steady state stayed near 1 s.

Posts

Authentication in a multi-tenant Spring Boot ERP: JWTs you can take back

I'm the primary backend developer on an admissions ERP that several colleges use from one deployment. In an earlier post I wrote about access control: who can touch which record. This one is about the step before that: how a user proves who they are, and how we stay in control of that proof after we've handed it out. Short version: stateless JWTs, but every token can be taken back. Logout kills one session, a password change kills all of them, and support impersonation can be ended on the spot. The token only says who you are. Which colleges you can reach is worked out again from the database on every request. Why authentication is harder when tenants share one app With one college per deployment, a stolen or stale session is bad. With many colleges on one deployment, it's worse, because one login is the front door to everyone's data. Three things make it tricky: People move. An admission officer gets transferred to another college, or their role ends. A token ...

Two years of freelancing: what shipping software for paying users taught me

Before I joined AVICS, I spent two years, from March 2023 to March 2025, as a freelance Java and Angular developer. I worked remotely on two products: a ledger-management product for a startup and a rental-management platform . On both I was the sole or lead developer, and I took the work from the first conversation to features that live, paying users relied on. This post is not about the products themselves. It is about the habits those two years built, the ones I still use every day on a team. What the work looked like For both products the job was end to end: Requirements straight from the founders and clients, with no product manager in between. Database design: the schema, the relationships, and the rules the data had to follow. REST APIs in Java and Spring Boot. The front end in Angular, wired to those APIs. Delivery to real users who paid for the product and noticed when something broke. No one else owned any of those layers, so every decision, and every mistake...

Three GNOME Shell extensions, one rule: never take the desktop down

Image
My work is backend Java, but my desktop is Linux, and in October and November 2026 I built three GNOME Shell extensions to fix small annoyances in my own day: a screen recorder , a focus timer and a background music player . All three are open source on GitHub. This post is about the one design rule they share and why it matters more in a desktop shell than almost anywhere else. Short version: a GNOME Shell extension runs inside the shell. If it blocks, the whole desktop freezes. If it crashes, the session can go with it. So anything heavy or risky (GStreamer, hardware encoders, audio devices) runs in a separate process that the extension talks to, and everything on the shell side is asynchronous . The three extensions Extension What it does Code Screen Recorder Records the whole screen, one monitor or a selected area, with system audio and/or microphone. Pause and resume into one file. MP4, WebM, MKV or GIF. GPU encoding where possible. screen-recorder-gnome Focu...

Access control in a multi-tenant Spring Boot ERP: two layers, and why the JWT doesn't decide

I'm the primary backend developer on an admissions ERP that several colleges use from one deployment. Students apply, office staff verify documents, accountants handle fees, and admins configure everything. Every one of those screens has to answer the same question before it returns data: is this person allowed to see this record? This post explains the access-control design we settled on and the reasons behind it. Short version: a coarse permission check on the controller, and ownership and tenant checks in the service layer, after the record is loaded. Tenant scope is re-derived from the database on every request. It is not read from the JWT. The shape of the system Java 21, Spring Boot 3, MySQL, Angular , around 90 JPA entities and 75 REST controllers , organised as ports and adapters (controllers → application services → domain → persistence). A tenant hierarchy: a tenant (an institution group) owns one or more colleges . Courses, fee structures, admission cycle...

Making prepaid recharges safe: row locks and idempotency keys in Spring Boot

On a prepaid energy meter, the balance decides whether the lights stay on. If a recharge is lost, a customer who paid gets disconnected. If a recharge is posted twice, the books are wrong and someone has to fix them by hand. I built the recharge flow for a prepaid metering platform, and this post walks through the design that keeps it correct when requests arrive at the same time or get retried. Short version: every recharge carries an idempotency key , locks the account row , checks the key again after getting the lock , and writes the ledger entry and the new balance in one transaction . A unique constraint on the key is the last safety net. Two ways money goes wrong 1. The retry. The user taps "Pay". The request reaches the server and the recharge is saved, but the response is lost on a slow mobile network. The app (or the user) tries again. Without protection, the server sees a brand-new recharge and posts it a second time. 2. The race. Two different recharges for ...

Load-testing an IoT platform with 3,000 simulated energy meters

Before an IoT platform goes live with thousands of devices, one question matters more than any feature: will it keep up? I work on a smart energy metering platform built on ThingsBoard, and before a large rollout I was asked to find out. This post explains how I tested it, what the numbers showed, and the two problems the tests found that no unit test would have caught. Short version: 3,000 simulated meters, one reading per minute each (50 messages per second), for an hour. Processing lag stayed flat at about 1 second (p95) , a supply cut-off command reached the meter in 1.3 seconds (p95) , and the server used about one CPU core . The tests also exposed a start-up connection wave and an alert flood . Why simulate instead of waiting for real meters Real meters arrive in batches, months apart, and you cannot ask a customer to switch 3,000 of them on and off for a test. A simulator lets you create the whole fleet on day one, run it as often as you like, and break things on purpose. ...

Experience

About me →
  1. Aug 2025 – nowSoftware Engineer, AVICS

    IoT smart-metering platform and admissions ERP.

  2. Apr – Jul 2025Software Engineer Intern, AVICS

    Converted to full-time.

  3. Mar 2023 – Mar 2025Freelance Java & Angular Developer

    Sole or lead developer on two products with paying users.