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

Request Reply for JetStream for autoscaling and scaling to zero (similar to Knative) #1627

Open
tamis-laan opened this issue May 3, 2024 · 1 comment
Labels
proposal Enhancement idea or proposal

Comments

@tamis-laan
Copy link

tamis-laan commented May 3, 2024

Proposed change

We can use Request Reply from NATS core but it would be awesome to have the same for JetStream. The reason being is that we can use the number of requests for autoscaling and scaling to zero similar to Knative.

The same idea holds for the services API.

Use case

Microservices autoscaling including scaling to zero. Combined with cluster autoscaling this would allow for reduced cloud costs. Particularly useful for running heavy batch jobs that run once in a blue moon.

Contribution

No response

@tamis-laan tamis-laan added the proposal Enhancement idea or proposal label May 3, 2024
@derekcollison
Copy link
Member

Since there is usage of reply subjects for both stream ingest and consumer ack for a message flowing through jetstream, you would need to use a header to signify the service reply subject and the responding ack would need to look for that header and use that if present when replying.

There also may be a different approach to this problem that does not involve jetstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

2 participants