Similar to the previous tutorial, a partition is used to access distributed data among different partitions.
You can download the code for this example here:
For this example we have a Phone that makes calls and logs the metadata regarding the call. We would like to make the storage of these call logs more robust so we can run some analytical queries to determine what calls were monitored by the NSA for each zip code.
Call logs are stored in partitions for area codes 555 and 123.
Notice that partition 555 has a record with callLogId = 1 and partition 123 has a record with callLogId = 1. Onyx uses the primary key of an entity as contrived key of their partition and identifier value.
Our goal is to bring about change by enabling people to use simple and quality software in order to make sad engineers happy.