Crowdhailer
Ace: HTTP/2 webserver
The latest release of Ace (0.10.0) includes serving content over HTTP/2.
I have started writing a webserver to teach my self more about webservers. Ace
The easiest thing is to probably summarize the plan here and if you want more details head on over to the README.
- To take this obviously deficient TCP echo server that I wrote as a beginner elixir developer and create a fully fledged HTTP server.
- Keep reasonable notes of progress so others can learn about how to build a web server in elixir.
- See what progress I have made in a year as an elixir developer.
Currently I have an issue which is confusing me (yes even at this beginner stage).
When I restart the server it often fails because the port is currently in use.
I call gen_tcp.close and am unsure why there is a delay in the port being properly closed?
Give the computer a few moments and the port does eventually become available again.
I know this is probably a help question but I didn’t want to post about my project twice and there are more things coming this way soon
Most Liked
Crowdhailer
The latest release of Ace (0.10.0) includes serving content over HTTP/2.
Instructions for getting started can be found in this guide.
An example app is available here.
Features available at this point are
- Stream isolation; one process per stream
- Bidirectional streaming; stream data too and from clients
- TLS(SSL) support via ALPN; data encrypted in transit
- Raxx interface; simplicitfy for request/response interactions
Also see the Roadmap for remaining features.
An adapter for plug and therefore phoenix is not something I am looking at yet. My preference is to shore up the foundations prior to a 1.0 release. However if anyone wanted to look at this I would be happy to offer some help getting through the codebase.
Any feedback would be great. At this point I am particularly looking for comments around the API.
At this point the project is very alpha. However I hope to stabilise it quickly.
Crowdhailer
I talked about Ace at Elixir.LDN, the videos is available now.
The talk covers
- The basics of HTTP/2
- Design decisions made by Ace, in particular how to make streaming easy
- Some chosen implementation details
- Next steps, including a plug adapter, GRPC implementation and GenStage integration







