Leafwell:
Telehealth Platform For Medical Cannabis

We partnered with Leafwell to modernize their infrastructure, scale their operations, and enhance the user experience. By transitioning from a legacy Ruby monolith to a serverless architecture with microservices, and developing a sleek React-based medical app now serving over 10,000 users monthly, we helped Leafwell improve flexibility, resilience, and efficiency.
Additionally, we upgraded their data platform to handle larger datasets, deliver faster analytics, and support impactful research, positioning them for growth in the rapidly evolving cannabis healthcare industry. 
The new Leafwell medical app, now in production, delivers a modern and intuitive user experience, strengthening Leafwell’s market position.

leafwell-1

 

The Client

Leafwell is a telehealth platform that simplifies access to medical cannabis. Founded in 2019 by Emily Fisher, a breast cancer survivor who experienced the therapeutic benefits of cannabis firsthand, Leafwell connects patients with licensed healthcare professionals to obtain medical marijuana cards online.

Serving over a million users monthly, Leafwell supports more than 100 health conditions, backed by a team of cannabis-knowledgeable healthcare providers. Their services are available seven days a week, in partnership with over 3,500 organizations, grounded in rigorous scientific research to promote safe and effective cannabis use.

Leafwell's mission is to revolutionize access to cannabis and empower wellness journeys by personalizing, prioritizing, and optimizing cannabinoid-based therapy recommendations. They aim to eliminate the trial and error in finding effective formulations and doses, integrating cannabis into treatment plans for comprehensive and informed care.

Since its inception, Leafwell has made significant progress, helping record numbers of people each month. They provide a space for learning about the therapeutic uses of cannabis at scale, contributing to the growing body of impactful research in the field. Committed to supporting individuals on their health journeys both in the U.S. and globally, Leafwell strives to make meaningful differences in people's lives.

leafwell-2

 

Our Collaboration

In 2024, we entered a strategic partnership with Leafwell. Initially, our collaboration centered on advisory support in areas like DevOps, site reliability, scaling, and performance optimization. Over time, this partnership evolved, with our founder, Ilie Ghiciuc, joining Leafwell’s board to contribute to their organizational growth and leadership strategy.

As the cannabis industry continues to gain traction, our partnership expanded to include a significant overhaul of Leafwell's platform—transitioning from an older Ruby monolith to a modern, serverless architecture.

In May, two of our developers began working on a prototype that has since evolved into the new Leafwell medical app. Currently, a team of nearly 10 people is dedicated to its development.

With Leafwell preparing for its next growth phase and expanding its services, we’re proud to support its journey and help position them to meet market demands with innovation and efficiency.

The challenge

Leafwell’s existing Ruby monolith platform posed significant roadblocks as demand for their services grew. The system struggled with increased traffic, causing performance bottlenecks that impacted both patients and healthcare providers. Deployments were slow and risky, requiring extended downtimes for updates. Additionally, integrating new features, such as advanced data analytics for research and personalized treatment recommendations, proved difficult due to the tightly coupled architecture.

Security was another key concern. As a telehealth platform handling sensitive medical data, Leafwell needed a system that could ensure HIPAA compliance, provide robust authentication, and safeguard patient records. Without a scalable and secure foundation, Leafwell risked limiting their ability to serve their growing user base and expand their offerings in the fast-evolving cannabis healthcare industry.leafwell-3

Our approach

Before implementing any technical changes, we first conducted an in-depth analysis of Leafwell’s existing Ruby monolith, identifying pain points related to scalability, performance, and data management. By collaborating closely with Leafwell’s stakeholders, we aligned our approach with their business objectives and growth plans, ensuring that the new architecture would support long-term expansion.

Building a Scalable, Secure, & High-Performance System

To future-proof Leafwell’s platform, we transitioned from a monolithic structure to a serverless microservices architecture. Each service was designed to operate independently, improving scalability, resilience, and deployment efficiency. We leveraged AWS’s cloud-native tools, including:

  • AWS Lambda for serverless compute, ensuring flexible and cost-effective processing.
  • Amazon RDS for a scalable, managed database solution.
  • AWS AppSync & GraphQL to streamline data queries and improve API performance.

Security was a top priority. We implemented:

  • End-to-end encryption for patient data.
  • AWS Cognito for robust authentication.
  • HIPAA-compliant infrastructure to ensure regulatory adherence.


leafwell-4

Iterative Development & Continuous Deployment

Our teams worked in agile sprints, maintaining close collaboration through daily stand-ups, sprint planning, and bi-weekly demos. This approach ensured continuous alignment and rapid iteration based on real-time feedback.

To ensure a smooth transition, we implemented a continuous delivery strategy, deploying multiple updates per day. The new application was introduced incrementally, initially going live for a few hours at a time before full-scale rollout. This allowed us to:

  • Monitor system performance in real-time and quickly address any issues.
  • Optimize user experience based on actual usage data.

The Outcome: A Future-Ready Platform

The new Leafwell medical app is now fully operational, serving 10,000+ users monthly with a modern, intuitive experience. The enhanced platform supports larger datasets, faster analytics, and more impactful research—positioning Leafwell for scalable growth and industry leadership.

Technical specifications

Microservices
GraphQL
React.js
Event sourcing pattern
AWS tools & infrastructure
WHAT OTHERS SAY

We excel at what we do.
Take our happy clients’ word for it.

Mike Waxman 
Director of Product,
Leafwell
Leafwell-logo

"Working with you guys helped narrow down what our product is supposed to do, implement it, measure it, improve it, and quickly iterate. Leafwell has transformed into a data-driven company, leveraging new platform flexibility for rapid testing and optimization. The new system allowed us to track more data and pivot quickly. We didn't have these capabilities before Leafwell Next."

Delivery process

Through our partnership, Leafwell successfully transitioned to a scalable, flexible, and future-proof platform that addresses their business needs and technical challenges. The new serverless architecture enables faster updates, improved resource efficiency, and robust scalability, positioning Leafwell for long-term growth.

Our commitment to efficiency and quality was reflected in the numbers. By implementing CI/CD pipelines and automated testing frameworks, we were able to:

  • Reduce deployment times to a few minutes, enabling rapid iteration.
  • Increase test coverage by over 90%, significantly lowering production bugs.
  • Maintain an average cycle time of just 3 days from development to production.

This streamlined process ensured that new features, optimizations, and security updates could be rolled out seamlessly without disrupting the user experience.

devops

30+

automated tests ran for every release
icon-hourglass

3 days

average cycle time from in Progress to Production
quality-assurance

2+

releases per day

The results

By combining technical expertise with a collaborative approach, we’ve helped Leafwell achieve a significant transformation, equipping them to meet the demands of a dynamic and growing industry.

The transition to the new system was more than just a technical upgrade—it had a direct impact on Leafwell’s business. Since launching the modernized platform, Leafwell has seen a 20% increase in user engagement and a 30% reduction in support tickets related to system performance.

With improved analytics capabilities, Leafwell can now track user behavior more effectively, leading to data-driven decisions that enhance both patient outcomes and business strategy. The flexibility of the new architecture has also positioned them to expand into new markets without the technical debt that previously slowed growth.

Looking ahead, we’re exploring deeper AI-driven personalization for treatment recommendations, further enhancing security with advanced compliance monitoring, and optimizing infrastructure costs to support Leafwell’s continued growth. Our partnership remains ongoing, with new updates and features in the pipeline to keep Leafwell at the forefront of digital healthcare innovation.

OUR SERVICES

Teams as a Service (TaaS) 

Our work

Other case studies

Discover how Thinslices helped Audora achieve streamlined audit processes, automated tasks, and enhanced efficiency with Fortune 200 companies. Read the full case study for insights.
Read case study

Let's discuss your product vision and how we can help you achieve it.

Envelope illustration