Advanced guides

Stream Worker

Setting up real time applications can be super hard. However, Aligned tries to reduce the difference between batch to real time applications.

You can setup a stream processing worker by running aligned serve-worker and pointing to a StreamWorker object.

Configuration

You can also configure the StreamWorker more

from aligned.worker import StreamWorker
from aligned import RedisConfig, FileSource

store = FileSource.json_at("feature-store.json")

worker = (StreamWorker.from_reference(
        store,
        RedisConfig.localhost(),
    )
    .expose_metrics_at(8000)
    .read_from_timestamps({
        "titanic": "$", # From now on and forward in Redis
        "taxi_arrivals": "0-0", # From the begining of the stream
    })
)

Under Construction 🚧

We are building out the documentation!

Previous
Feature Server