theclaymethod / lift

Exercise in exercise analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lift

A demonstration of an application that uses wearable devices (Pebble)—in combination with a mobile app—to submit physical (i.e. accelerometer, compass) and biological (i.e. heart rate) information to a CQRS/ES cluster to be analysed.

The result is automatically constructed exercise log, which includes:

  • the kind of exercise (biceps curl, shoulder press, and other such tortures)
  • the intensity (light, moderate, hard)—nota bene that intensity != weight

It is also an excellent demonstration of large reactive application. It is event-driven: throughout the application, it uses message-passing to provide loose-coupling and asynchrony between components. It is elastic: the users and their exercises—the domain—is sharded across the cluster. It is resilient: its components can recover at the appropriate level, be it single actor, trees of actors or entire JVMs. It also uses event sourcing to ensure that even catastrophic failures and the inevitable bugs can be recovered from. It is responsive: it does not block, and it is capable of distributing the load across the cluster.

It combines near-real-time machine classification needed for immediate exercise feedback, with "offline" model upgrades. Once upgraded, the event-sourced nature of the system allows us to re-apply the new model to the old data, and thus provide the users with better data.

About

Exercise in exercise analysis

License:Apache License 2.0


Languages

Language:C++ 77.5%Language:Swift 12.3%Language:Scala 9.0%Language:C 0.5%Language:Ruby 0.4%Language:Shell 0.2%Language:Objective-C 0.1%Language:Python 0.0%Language:R 0.0%