Hussain Akram & Antonio Carlos de Souza: Rails Scales for the Rest of Us

In this On Rails podcast episode, Hussain Akram and Antonio Carlos de Souza discuss how Donorbox leverages a monolithic Ruby on Rails application, adhering to Rails conventions and using tools like Sidekiq and AI-assisted development to efficiently scale and maintain their platform for nonprofit fundraising. They emphasize Rails’ simplicity, maintainability, and developer-friendly philosophy, sharing insights on team organization, deployment practices, and the importance of readable, domain-driven code for long-term growth and operational stability.

In this episode of the On Rails podcast, host Robbie Russell interviews Hussain Akram and Antonio Carlos de Souza (AC) from Donorbox, a platform that helps nonprofit organizations raise money online and in person through a Ruby on Rails application that has evolved over more than a decade. Both Hussain and AC share their journeys with Rails, emphasizing the framework’s convention-over-configuration philosophy, which simplifies development and onboarding. Hussain started with Rails during his university studies, appreciating how it allowed him to focus on solving problems rather than infrastructure, while AC transitioned from Java to Rails seeking a more streamlined and less fragmented development experience.

Donorbox’s engineering team is organized into specialized groups focusing on different aspects of the platform, such as in-person fundraising, online fundraising, integrations, and customer support. Despite the complexity and scale of their operations, including handling millions of requests monthly and spikes of over 200 donations per minute, their core application remains a monolithic Rails app supplemented by smaller supporting repositories for kiosks and integrations. They leverage Heroku for hosting, balancing simplicity and cost, and use background job processing with Sidekiq, with plans to migrate to Solidus for better job management and efficiency.

The team places a strong emphasis on maintaining Rails conventions to keep the codebase accessible and maintainable, which aids in onboarding new developers quickly. They have undertaken efforts such as migrating from Slim templates back to ERB to reduce complexity and improve developer experience. Their deployment process is straightforward, supported by thorough testing and QA, with a focus on local CI to speed up feedback loops and maintain high code quality. They also use internal tooling to enforce code standards and ensure consistency across their large, distributed team.

A notable aspect of their development culture is the use of AI tools like Claude and Cursor to assist with code understanding, reviews, and documentation, enhancing developer productivity and knowledge sharing. However, they remain cautious about over-reliance on AI, recognizing that contextual knowledge and historical decisions often require human insight. They document conventions and patterns in MD files to guide both developers and AI agents, fostering a collaborative and evolving approach to code quality and architectural decisions.

Finally, Hussain and AC reflect on the broader lessons from their experience with Rails, recommending classic programming books such as “Agile Web Development with Rails,” “Eloquent Ruby,” and “The Pragmatic Programmer.” They highlight Rails’ role in enabling rapid development and scaling for startups and emphasize the importance of readable, domain-driven code. Their story illustrates how Rails can support long-term growth and complexity while maintaining developer happiness and operational stability in a mission-critical application like Donorbox.

Useful Links