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

POST endpoint for the proxy/frontend api #4585

Closed
omarzouk opened this issue Aug 30, 2023 · 4 comments
Closed

POST endpoint for the proxy/frontend api #4585

omarzouk opened this issue Aug 30, 2023 · 4 comments
Assignees

Comments

@omarzouk
Copy link

omarzouk commented Aug 30, 2023

Describe the feature request

Would it be possible to add a POST endpoint that accepts context parameters as json data?

Background

Using the GET endpoint with large contexts forces a change in the network infrastructure to allow large request headers which is not always desirable. Also, having to urlencode all variables adds an unnecessary complexity. It adds a limitation to the size of the context that doesn’t really need to be there.

Solution suggestions

Add a POST endpoint to proxy/frontend API

@nunogois
Copy link
Member

nunogois commented Sep 4, 2023

Hi @omarzouk - Thank you for raising this issue! I'll reach out to the rest of the team and get back to you.

@nunogois nunogois moved this from New to Todo in Issues and PRs Sep 4, 2023
@sighphyre
Copy link
Member

Hey @omarzouk! I think this probably makes sense to add, can't promise you a timeline though. I'll have to have a quick huddle with the team that built this tomorrow to see if they have any objections but I can't see any off the top of my head.

That being said, I would generally suggest you treat the proxy/frontend endpoint as an experimental starting point rather than something to scale out against. Using really large contexts suggests that you're already hitting the sane limits of using this. Have you considered using Edge (https://github.com/Unleash/unleash-edge)? This handles scale a whole bunch better and already supports the POST endpoint you want. It's a whole bunch better for privacy as well

You also mention that it's a pain to URL encode the parameters, usually the proxy SDKs will do that for you, which I recommend using since they'll make sure metrics get handled correctly.

@ivarconr
Copy link
Member

Using really large contexts suggests that you're already hitting the sane limits of using this. Have you considered using Edge (https://github.com/Unleash/unleash-edge)? This handles scale a whole bunch better and already supports the POST endpoint you want.

I think the fastest, and probably the most robust solution would to consider edge for now.

@ivarconr
Copy link
Member

duplicate of: #7119

@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants