
With a 15-year history, YourBestGrade (YBG) has become an important resource for nursing students across the United States. The platform provides a comprehensive suite of exam preparation tools, supporting students from the HESI A2 entrance exam through to HESI NCLEX certification.
YBG's goal has always been to provide a flexible practice environment where students can identify their weaknesses, focus on areas that need improvement, and prepare with questions that closely mirror real exam formats.
When NUS Technology joined the project, the platform was already running on an 11-year-old codebase. Rather than replacing an established product, NUS took over the existing system and began an ongoing partnership focused on improving performance, modernizing the technology, and expanding the platform's capabilities.
Name
YBG
Services
Take Over & Stabilize, Run & Maintain, Extend & Integrate
Backend
Ruby on Rails
Database
PostgreSQL
Frontend
Ruby on Rails, react-rails, Next.js, Tailwind CSS
Infrastructure
AWS (EC2, RDS, S3, ElastiCache), Google Cloud (Backup)
Industry
EdTech (Nursing Education & Exam Preparation)
Market
United States
Integration
Aweber, BugSnag, VWO, VdoCipher

YBG had built a feature-rich exam preparation platform over many years, but its aging codebase had accumulated technical debt and performance issues. As the product continued to evolve, these limitations made it increasingly difficult to maintain reliability, deliver new features, and support complex exam interactions.
An Aging Legacy Codebase: The 11-year-old platform carried significant technical debt, making ongoing maintenance and modernization increasingly challenging.
Slow Test Generation: The Test Creator frequently took 70–120 seconds to generate exams, with some requests hitting the two-minute timeout limit.
Database Performance Bottlenecks: Loading tests and question sets placed heavy demands on PostgreSQL, causing database overload and slowing down the user experience.
Complex Interactive Question Types: Supporting 18 question types, particularly image-based drag-and-drop interactions, required consistent behavior across different screen sizes and mobile devices.


NUS Technology took a long-term, incremental approach to improving YBG. Rather than replacing the established platform, the team focused on understanding its existing architecture, resolving critical performance bottlenecks, and introducing modern technologies where they delivered the greatest value. This allowed YBG to retain its core functionality while becoming faster, more stable, and easier to evolve.
NUS inherited an established Ruby on Rails application backed by PostgreSQL, with an existing frontend built around Rails and react-rails.
Rather than introducing a complete rewrite, the team worked within the existing architecture, identifying how core exam logic, question management, and test generation operated before making targeted changes.
This provided a foundation for safer modernization, allowing the team to preserve established business logic while improving the platform incrementally.
Two of the most critical performance issues involved test generation and database overload.
Optimizing the Test Creator
The Test Creator was taking 70–120 seconds to generate an exam, with frequent requests reaching the two-minute timeout limit.
NUS conducted a deep analysis of database queries and application logic, then applied targeted optimizations to reduce generation time to an average of 3–7 seconds.
Eliminating Database Overload
To reduce the database load when users accessed tests and question sets, NUS introduced AWS ElastiCache (Redis) as a caching layer.
Frequently accessed questions and test data could be served from memory rather than repeatedly querying PostgreSQL. This reduced database read pressure and significantly improved question-set loading performance.
NUS evolved the frontend incrementally, using react-rails to introduce modern, interactive components within the existing Rails application.
For standalone features such as the HESI A2 module, the team adopted Next.js and Tailwind CSS, creating a more modern frontend foundation while keeping the core platform intact.
Supporting Complex Exam Interactions
The platform needed to support all 18 question types, including image-based drag-and-drop interactions.
NUS engineered custom JavaScript solutions to handle image scaling across different screen sizes and introduced a click-and-drop alternative for mobile users, ensuring that complex question interactions remained accessible across devices.
Improving Regression Testing
NUS also retrofitted automated testing onto a codebase that previously had very limited test coverage. By prioritizing critical revenue and exam-logic modules, the team improved confidence in changes and reduced the amount of manual regression testing required before releases.
Through targeted modernization and continuous engineering improvements, NUS helped YBG turn an aging platform into a more reliable exam preparation environment, while making future development safer and more efficient.
Faster Test Generation and Fewer Failures: The Test Creator's average generation time dropped from approximately 95 seconds to around five seconds, representing a performance improvement of over 95%. Timeout-related failures also fell from an estimated 11% of attempts to below 0.5%.
Reduced Database Load and Improved Reliability: Redis caching achieved a cache hit rate of nearly 90%, reducing peak database read load by approximately 65%. Question-set page loading times also improved from around four seconds to under one second, while the platform maintained approximately 99.9% uptime.
Faster and Safer Development Cycles: By introducing automated testing into critical revenue and exam-logic modules, NUS brought test coverage to approximately 50% across these key areas. Regression testing time was reduced from 2 - 3 days of manual work to just a few hours.

95%+ Faster Test Generation | Timeout Failures: ~11% → Under 0.5%
~65% Lower Peak Database Read Load | 99.9% Platform Uptime
~50% Coverage of Critical Test Modules | Regression Testing: 2–3 Days → A Few Hours
These gains underpin the defining outcome: an 8-year (and continuing) collaboration on a mission-critical system, reflecting deep trust and NUS Technology's ability to consistently deliver value.
For nursing students preparing for important exams, YBG is more than a collection of practice questions. It is a platform they rely on throughout their preparation, making its reliability and continued improvement essential.
The 8-year-and-counting collaboration between YBG and NUS Technology reflects the trust built over time and the value of having an engineering partner who understands the system deeply. Together, the teams continue to keep this mission-critical platform reliable while supporting its ongoing evolution.

Director
"We've partnered with NUS Technology for 8 years. Their team skillfully optimized our legacy platform, significantly improving performance on key features like the test creator. Their reliable, long-term support has been invaluable to maintaining our system's stability."
Get the full story in PDF format, including project details, technical insights, and measurable results you can apply to your own business.


Let’s have a strategic conversation about your goals and how we can achieve results like these for your business.