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

Handle FullHttpRequest with Action #633

Open
prophe05 opened this issue Aug 17, 2016 · 3 comments
Open

Handle FullHttpRequest with Action #633

prophe05 opened this issue Aug 17, 2016 · 3 comments

Comments

@prophe05
Copy link

Hello! I use micro-services, and MessageQueue for interservice communication. So on end-point service I have deserialized FullHttpRequest instance from queue and requsted url. is there any possibillity in xitrum to handle my http request directly with action or something else?

@ngocdaothanh
Copy link
Member

This use case is currently not supported directly.
But there are some workarounds.

So basically you want an action to be called based on the FullHttpRequest instance.
The action will produce a response.
Do you want to also capture the response, or just throw it away?

@prophe05
Copy link
Author

Yes, I'm also interested in response...
I think one way is to use come kind of http client to connect to xitrum servers and send http request to it. For example netty Bootstrap with connect method...

I'm right?

@ngocdaothanh
Copy link
Member

Yes, I think for now you can do that.

In the future, Xitrum may expose its handler pipeline, and you can write your FullHttpRequest directly to the pipeline.

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

2 participants