In this post, I'll share how I built a system to efficiently extract tenants from a large Rails monolith with a complex data model to their own dedicated environments while significantly reducing extraction size and improving performance.
Here’s a compelling case against using Sidekiq, even though it’s often praised for being 15 times faster than Solid Queue or ActiveJob when processing an empty job. While that speed sounds impressive, it’s not the whole story—and there are good reasons to think twice before choosing it.
When I built the blog feature for my Cosmos application, I knew that a good search functionality would be essential for users to find relevant content as the blog grew.
After exploring various options, I settled on using PostgreSQL's full-text search capabilities and the pg_search gem. In this post, I'll share my approach, which offers a clean, maintainable solution without the complexity of database triggers.
While it comes with its own set of default styles, you might want to customize it to match your application's design system - especially if you're using modern CSS frameworks like TailwindCSS and DaisyUI.
Docker containers have become the industry standard for application deployment, but as my applications grow, so do my Docker images. Large images lead to slower deployments, increased bandwidth costs, and higher resource usage. In this post, I'll share my recent experience optimizing a Rails application's Docker image by intelligently filtering SVG icons and leveraging a robust .dockerignore file.
If you've built Rails applications, you've likely used the popular High Voltage gem to handle static pages. But what happens when your application outgrows the constraints of this gem, particularly when using modern view components like Phlex within a multi-tenant or namespaced application?
When rate limiting jobs, I use a simple redis rate limit lua script that I posted here: https://mhenrixon.com/articles/client-side-rate-limiter , and I also use a similar scheduler to spread the jobs out. This is how I do it
I never liked the built-in date picker; it looks different in every browser. I wanted a date picker that fits with the existing design without learning how to style a third-party library.
In an attempt to keep things stupidly simple, I had issues choosing tags for my array column tags. Every library I tried expects me to be more complex, so I "rolled my own™
MongoDB 2.x has few possibilities for data extraction, and I need to make some changes to be able to load it into PostgreSQL. Recursion was the last thing on my mind 🤷♂️