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

How to use StargateClient in web framework like axum? #25

Open
miladamery opened this issue Nov 12, 2023 · 0 comments
Open

How to use StargateClient in web framework like axum? #25

miladamery opened this issue Nov 12, 2023 · 0 comments

Comments

@miladamery
Copy link

Hi. In a web framework like axum you can have a shared state and share it via axum State to end points. What axum does is actually creating a clone of its state to requests. My question is:
Is it ok to clone StargateClient every time we want to use it? Is there any problem? any consideration over that?

@miladamery miladamery changed the title How to use StargateClient in webframe work like axum? How to use StargateClient in web framework like axum? May 18, 2024
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

No branches or pull requests

1 participant