Skip to main content

31 docs tagged with "LOC"

View all tags

Add Extra Local Data Services

It is possible to add extra local data storage services in the Local Simple Runtime. A containerized test environment is great for testing and can be deleted at any time. These services can also be accessed directly via 127.0.0.1 instead of host.docker.internal.

Context and Task

Data Context is an object injected into logic functions during a task, which containes some key components:

Database Agent

Connecting external databases with built-in drivers. Currently the following databases are supported:

Deploy API Route

API routes is one of the trigger features that can be deployed and managed from CLI, which make data processes RESTful-like. See Triggers commands for more details.

Deploy MQ Client, Pub and Sub

Message queue clients, publishers and subscribers together are one of the trigger features that can be deployed and managed from CLI.

Deploy Scheduler

Scheduler - schedules and scheduled jobs - together are one of the trigger features that can be deployed and managed from CLI. See Triggers commands for more details.

Emit and Inspect Events

LOC data events allows users to generate a data flow or data trail to indicate who have sent and received data. These information can be very useful for two reasons:

File Storage Agent

Accessing and writing remote files. Supports the following protocols/storage:

Logic and Session

Logic are the core elements of a data process. They contains the implementation of part of a data pipeline. And the session storage is the thing to link them up together.

Payload

Payload is the data sent by triggers as input and is accessible from the context object. Currently there are two payload types:

Quick Start

This quick start will go through a tutorial of building a simple "Hello World" data process in LOC Studio using JavaScript.

Release Note

LOC v0.6 has brought some new features and improvements since v0.5.0. This is also the first available version of LOC Documentation.

Result Agent

Finalise a JSON object as the result data. If the trigger is synchronized API route or message queue, it will be returned to the trigger.

Setup CLI

LOC CLI is the command line tool for developers to deploy data processes and manage other assets in LOC.

Single Data Process Execution

If a data process is deployed, it can be run without using triggers. This is exactly the same as the Execution function in Studio.