At Practo, we have a software offering (Ray by Practo) that is used by more than 40,000 doctors and their staff. They use it manage their scheduler and digitize medical records.

Image for post
Image for post
Doctor’s scheduler

SaaS products are fundamentally different from mass consumer products in a few ways, when it comes to performance.

  1. User tailored content: Each authenticated doctor/receptionist sees content specific to their clinic.
  2. Quick updates: As Ray sits in the clinic’s workflow, data changes really fast — with check-in of a patient, a new walk-in appointment, a phone call for rescheduling appointment, etc.

Due to these reasons, Ray cannot benefit from the static caching mechanisms that we have deployed for our consumer-facing website practo.com, …


Image for post
Image for post

I love npm and believe that this package manager is the single biggest reason for JavaScript’s massive success these past few years.

There was a lot of excitement in the JavaScript community when facebook released yarn. And for good reason. Yarn’s install speeds are amazing. Subsequent installs are even faster because yarn caches installed modules on your machine.

Image for post
Image for post
Install speeds @ 12Mbps. Yarn = 🚀

But there’s an npm feature that does not get nearly the attention it deserves.

Like Yarn, npm also has a built-in caching mechanism that can make subsequent installs super fast.

Here are some benchmarks:

Image for post
Image for post
npm + cache is as fast as yarn + cache (if not faster)

That’s crazy, right? And guess what: this feature has been available to you this whole time, but it’s disabled by default. …


Image for post
Image for post

When writing JavaScript, I hate it that I have to leave my editor — and my train of thought — just to tab over to my terminal and install a new package with:

$ npm install --save express

To scratch my itch, I wrote a tiny node utility which lets me focus on the code without installing dependencies.

Image for post
Image for post

I was pretty happy with it, so I wrapped it in a git repository and shared it on Hacker News.

If you’re interested, here’s a link to the repo, auto-install, which already has more than 6,000 downloads:

An Instant response

I wasn’t expecting much out of the post, just wanted to throw it out there in case someone else finds it useful. …

About

Siddharth Kshetrapal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store