Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose nats streaming sequence number as a transport property #26

Merged
merged 3 commits into from
Oct 29, 2019

Conversation

pcnfernando
Copy link
Contributor

Purpose

Fixes #25

Approach

Expose nats streaming sequence number as a transport property

Sample

@source(type='nats', 
destination='SIDDHI_NATS_SOURCE_TEST_DEST', 
client.id='nats_client', 
bootstrap.servers='nats://localhost:4222', 
cluster.id='test-cluster, 
@map(type='json', @attributes(name='$.name', age='$.age', country='$.country', sequenceNum='trp:sequenceNumber')))
define stream inputStream (name string, age int, country string, sequenceNum string);

@mohanvive mohanvive merged commit 55226f8 into siddhi-io:master Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing NATS Streaming Sequence Number within Siddhi Event
2 participants