Apperate and its features are deprecated.
There are two ways of writing data to Apperate:
Here are overviews of both.
Writes small amounts of data (one record or a few records) fast
Publishes actionable Rules Engine events (optional)
Asynchronous option (default): The method returns immediately–Apperate saves your data, queues it, and shortly therafter makes it available to query. This is the fastest way to write data and the best way to make multiple data writes simultaneously.
Synchronous option (
wait: true): The method blocks until the data is written and available to query. This way assures that the data can be queried once the method returns.
Record order is not guaranteed
Does not write to logs
Make sure to check out our Real-Time Write Performance Tips.
POST /data endpoint supports loading data in batch.
Writes any amount of data; optimized for large amounts of data
Record order is deterministic
Writes to logs. Invalid data is reported per record.
This section demonstrates both ways of storing data.
Write Data Records with POST /record demonstrates writing data records in a fast, light-weight manner. The writes register as events by default, so you can trigger Rules to alert stakeholders. You can optionally focus on publishing events and skip data persistence altogether–it’s completely up to you.
Write Data with the apperate.write() JS Method demonstrates doing everything the
apperate.write() method wraps the
POST /record endpoint.
Batch Write Data with POST /data demonstrates batch writing data to Apperate and tracking its job.
Enjoy using your data in our real-time store and publishing actionable events to use with Rules!