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

js simplification ADR #176

Merged
merged 18 commits into from
May 30, 2023
Merged

js simplification ADR #176

merged 18 commits into from
May 30, 2023

Conversation

aricart
Copy link
Member

@aricart aricart commented Nov 23, 2022

This is the formalization of the JetStream simplification goals into the ADR. Some details still missing on the options but drawing the line in the sand.

adr/ADR-32.md Outdated Show resolved Hide resolved
adr/ADR-32.md Outdated Show resolved Hide resolved
@scottf
Copy link
Collaborator

scottf commented Nov 27, 2022

It would be nice to add in the part about the Consume payload not just being a message, but an object/tuple whatever

@aricart
Copy link
Member Author

aricart commented Nov 28, 2022

It would be nice to add in the part about the Consume payload not just being a message, but an object/tuple whatever

This is language specific.

@scottf
Copy link
Collaborator

scottf commented Nov 28, 2022

It would be nice to add in the part about the Consume payload not just being a message, but an object/tuple whatever

This is language specific.

Agreed the implementation is language specific. I'd just like to call it out specifically in the doc that the behavior is required.

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aricart
Copy link
Member Author

aricart commented Nov 30, 2022

@Jarema @piotrpio @scottf added an initial discussion of the options - note that there are some edge conditions which will need to address.

adr/ADR-32.md Outdated
- Every other pull request error should be treated as terminal error - it should be telegraphed to the user (in langie-specific way),
the `Consume()` execution should be stopped and subscription should be drained.

###### Idle heartbeats
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems a but under specified, its quite a complex set of variables to determine default HB, HB when not given and a user sets expiry etc. Do you have guidance here?

An earlier draft suggest expiry/2 with max 30s (iirc) but thats quite problematic with also 2 x HB being out. And in real life you should also consider network latency in waiting for HBs

@piotrpio piotrpio force-pushed the js-simplification branch 2 times, most recently from 93ac978 to 8e74d60 Compare May 17, 2023 12:58
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
adr/ADR-37.md Show resolved Hide resolved
adr/ADR-37.md Outdated Show resolved Hide resolved
adr/ADR-37.md Show resolved Hide resolved
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio marked this pull request as ready for review May 30, 2023 07:14
@Jarema Jarema merged commit fe78331 into main May 30, 2023
1 check passed
@scottf scottf deleted the js-simplification branch May 22, 2024 10:50
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.

None yet

5 participants