Difficulty: Beginner
Estimated Time: 60 minutes

Ensuring that data is available fast, consistent and available is key to successful applications. Yet offering this capabilities at scale can be difficult to implement.

By persisting data within the Fabric it provides the opportunity to reduce latency and increase availability by having the data geo-located at the edge.

In this scenario you will learn how to use Macrometa to persist data at edge locations that are then automatically replicated to other regions within the geofabric. This scenario will use the pyC8 library with Python to build a server-side application for interacting with the C8 API for managing persistence.

The scenario explains:

  • Creating and Connecting to Fabric

  • Creating Collections

  • Inserting Data

  • Querying Data

  • Updating Data

  • Deleting Data

Persisting Data at the Edge with Python

Step 1 of 7

Setup

pip install pyC8

app.py