DEV Community

Discussion on: One Recent Lesson in Scaling the dev.to Rails App

Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

While other people were migrating to Elixir or Go I just dug deeper into Rails to work at scale with less friction. One such thing that breathed new life into Rails was serving json directly from Postgres database. I saw endpoints go from 500ms to 20ms with no caching. It was unbelievable.

Though this required writing raw queries and so I then created my own gem that made it easier to managed queries and also some helpers for json functions.

I probably would have a popular gem on my hands if I bothered to put some marketing effort and documentation behind it.

Monster Queries

I have on my todo list to get rid of using handlebars and writing my own templating language for SQL.