Knoldus Inc

knoldus-logo

Fitness Services

The Weight Loss Industry Leader’s New Class of Customer Services Are Being Driven by Microservices and Fast Data

Headquaters

United States

Industry

Fitness Services

Technology Used

Microservices and Fast Data

The Weight Loss Industry Leader founder are a global wellness technology company inspiring millions of people to adopt healthy habits for real life. They do this through engaging digital experiences, face-to-face workshops and sustainable programs that encompass healthy eating, physical activity and positive mindset. By drawing on over five decades of experience and expertise in behavioral science, they build communities in order to deliver wellness for all. 

Challenges

As competitive pressures mounted, they had some extra weight of its own that it needed to address: it's legacy.

Solutions

The team favors Play Framework for its simplicity and performance - it doesn’t require a lot of detailed knowledge to understand how to use it, and as a mature framework, it’s very easy to get up and running.

Results

They can horizontally scale a service up or down in minutes as a fully automated process.

Competitive Dynamics

The company is a prime example of how, as “software eats the world,” traditional businesses are forced to modernize with technology. Over the last decade, with the spawn of wearable devices and smartphones, countless thousands of consumer apps have been launched that tackle everything from weight loss to fitness data to food tracking. Consumers have become very savvy in using their phones to track diet, exercise, and analytics to measure their progress.

To remain a leader in the weight loss industry, they knew that it needed to deliver its proven weight loss program and be the leader in delivering apps and digital experiences. For more than 20 years, the company had been slowly building out digital services to support its users, but competitive demands were accelerating the pace.

They had become a software company, where its competitive edge was staked on its ability to continuously ship new apps and functionality to attract new users and maintain its dedicated following.

Challenges

But the Old .NET Monolith Was Dead Weight

As competitive pressures mounted, they had some extra weight of its own that it needed to address: it’s legacy .NET monolith. The .NET monolith became increasingly difficult to scale through the years of software accumulation. And more concerning, the monolith was hamstringing the company’s ability to rapidly deploy new features to match the pace of its developer’s release cycles.

“We realized that the old way of doing business for us wasn’t going to work in the modern world,” said Michael Lysaght, CTO. “We made a commitment to modernize our stack to introduce new features faster, respond to customer feedback more quickly, and provide beta programs and testing with our members.”

Solution

Microservices and Knoldus Bring Developer Agility

In 2015, the company embarked on a mission to modernize its software stack, to support the new realities of continuous development. At the heart of its efforts were a new website and a new mobile app that allowed customers to track the food they eat, input weight and lifestyle information, and give them real-time data to crunch and re-calculate customized weight loss programs for each member. From user conveniences, like the ability to barcode scan food at the supermarket and track meals, to more holistic considerations around how they would ingest data from other user devices. The re-platforming vision was a core set of microservices that would simplify developer creation of new services without the drag of monolith dependency and scale concerns.

They have created 12 different microservices — all written in Scala using the Play Framework and also using Akka, and built on top of the Cassandra database. Each microservice provides its own REST API to power aspects of client applications that allow customers to track food, enter data, and follow a calculated, customized weight loss program.

The team favors Play Framework for its simplicity and performance – it doesn’t require a lot of detailed knowledge to understand how to use it, and as a mature framework it’s very easy to get up and running. This made it ideal for building out their REST APIs as a set of highly available microservices.

The Actor abstraction provided by Akka offered a simple way for them to handle slow operations like external HTTP calls or writes to the database in a non-blocking, concurrent manner. Actors make it very easy to perform concurrent operations to avoid race conditions, unnecessary thread-blocking, and other common concurrency issues. They found Actors particularly useful for reading from/writing to Kinesis event streams.

What the company Like About …

Scala

  • High Productivity – Simple concise syntax, rapid development, strong type system
  • Great with concurrency -because of immutability, Futures and Actors.
  • Java interoperability – allows re-use of Java libraries, JVM tooling, etc.

Play

  • Simple to use
  • Great for creating REST APIs
  • Highly performant in microservices and streaming data architectures

Akka

  • Powerful multi-threading capabilities
  • Concurrency abstractions are well-suited for event streams
  • Capabilities to bulkhead code and scale without re-writes

Monitoring

  • Easy/fast to implement monitoring
  • Very useful for performance tuning of applications, identifying bottlenecks, etc.
  • Integrates well with visualization tools

Knoldus Support

  • Very responsive
  • Very helpful with deep knowledge of all aspects of the Knoldus stack
  • Great for general Scala advice

Results

The Company Modernized Stack

Purpose

Purpose

Time to release updates

Typically 3-4 hours, often requiring application downtime.

< 20 minutes to release a service update with no downtime

Ability to scale

Scaling up is a very slow labour-intensive manual process, requiring cloning and customization of hardware, code deployments and testing. This typically takes days to implement.

Can horizontally scale a service up or down in minutes as a fully automated process. Soon will be able to automatically scale up or down in response to demand.

Today

A Hotbed for Developer Innovation and a Great Culture for Scala Developers

Today with its microservices architecture, they have become a nimble development organization focused on expanding customer services based on real-time data and integrating various other devices. The company’s #1 engineering focus is its member experience and building best-in-class applications with emerging frameworks. As of Q4 2016, they saw five consecutive quarters of recruitment growth, with 2.6 million end-of-period subscribers.

“We want to continue to use Fast Data to be very responsive to our customers,” said Nick Smith, Senior Engineering Manager. “We’re interested in all aspects of Fast Data – event streaming, data analytics, and real-time ingest. Knoldus Reactive Platform and our microservices architecture enable us to pursue these new opportunities to bring value to our members.”

Explore latest Case Studies