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

Experiment with PipelineWrapper abstraction #1

Open
djspiewak opened this issue Jan 12, 2021 · 0 comments
Open

Experiment with PipelineWrapper abstraction #1

djspiewak opened this issue Jan 12, 2021 · 0 comments

Comments

@djspiewak
Copy link
Member

We want to be able to allow users to wrap up preexisting pipeline handlers in a type safe fashion and add them to a server/client config statically. This might also require generalizing socket from Socket[F] to Socket[F, A] where A is the chunked message type. This would be a relatively restricted interface in the sense that the pipelines would be static per bootstrap (a restriction not imposed by Netty). However, pipelines would still be free to internally mutate their own state on a per connection basis, just as normal. For example, handling the upgrade request from HTTP to WebSockets.

Some basic examples of where this kind of thing is useful:

  • TLS
  • HTTP
  • WebSockets

The existing Netty support for these protocols is extremely good and much faster than what you can do if you push things through the fs2 abstraction; there's almost no reason not to make it possible to apply them within a safe framework.

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