Please note that the API is not considered stable yet.
Docker based test suite testing against the official Nakadi docker image.
A type-safe API for interacting with Nakadi. For example, the name of an event type has type
Textor something generic. Correct types for values like
CursorOffsetare provided (which must be treated as opaque strings).
Integrated and configurable retry mechanism.
Conduit based interfaces for streaming events.
Support for temporary subscriptions.
Convenient Subscription API interface (
subscriptionProcessConduit), which frees the user from any manual bookkeeping.
Mechanism for registering callbacks for logging and token injection.
Example code showing how to dump a subscription:
dumpSubscription :: (MonadLogger m, MonadNakadi IO m) => Nakadi.SubscriptionId -> m () dumpSubscription subscriptionId = Nakadi.subscriptionProcess Nothing subscriptionId processBatch where processBatch :: MonadLogger m => Nakadi.SubscriptionEventStreamBatch Value -> m () processBatch batch = logInfoN (tshow batch)