bandit
programming-phoenix-liveview
bandit | programming-phoenix-liveview | |
---|---|---|
6 | 6 | |
1,754 | 16 | |
1.8% | - | |
9.2 | 10.0 | |
6 days ago | over 3 years ago | |
Elixir | Elixir | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bandit
-
HTTP/2 Continuation Flood: Technical Details
I'd just mitigated this exact thing in Bandit last month!
https://github.com/mtrudel/bandit/blob/main/lib/bandit/http2...
TBH, from an implementors perspective this is a super obvious thing to cover off. It had long been on my radar and was something that I'd always figured other implementations had defended against as well.
-
Anyone using bandit in prod?
[1] https://github.com/mtrudel/bandit/blob/main/lib/bandit/websocket/permessage_deflate.ex
-
Phoenix 1.7 is View-less
Could even switch over to Bandit which was on a recent Thinking Elixir podcast
> In recent performance tests, Bandit's HTTP/1.x engine is up to 5x faster than Cowboy depending on the number of concurrent requests. When comparing HTTP/2 performance, Bandit is up to 2.3x faster than Cowboy
https://github.com/mtrudel/bandit
- Bandit is a pure Elixir HTTP server for Plug and WebSock applications
- (Elixir / Erlang) Bandit's HTTP/1.x engine is up to 5x faster
programming-phoenix-liveview
-
Elixir as first programming language
Read and watch tutorials: Thinking Elixir - a podcast that explores different aspects of the Elixir programming language: https://thinkingelixir.com/ Learn Elixir - a free interactive tutorial that teaches Elixir from scratch: https://www.learnelixir.tv/ Programming Phoenix LiveView - a book that teaches how to build web applications in Elixir using the Phoenix framework https://pragprog.com/titles/liveview/programming-phoenix-liveview/
-
Phoenix 1.7.0 Released: Built-In Tailwind, Verified Routes, LiveView Streams
A good project based book that goes pretty in depth is: https://pragprog.com/titles/liveview/programming-phoenix-liv...
- Projects with best practices
-
Phoenix 1.7 is View-less
LiveView is evolving into a great piece of tech, but as others have noted elsewhere in the comments one of the challenging parts with LiveView right now (and to an extent Phoenix) is the outdated books & tutorials.
Bruce Tate and Sophie DeBenedetto have been authoring the book “Programming Phoenix LiveView” (https://pragprog.com/titles/liveview/programming-phoenix-liv...) which has the potential to be a great source for people that want to really dive into LiveView. The challenge though is they have not updated it to support the changes introduced in 0.18.0 which makes it really hard to start using the book when a new Phoenix application “mix phx.new dev_app” looks different than what’s in their book and some of their code breaks with the default installed versions of included plugs.
While I wish the book would receive an update sooner that brings it back to a compatible state (meaning there are no issues following along with the book), the good news is they have committed to having the book be updated when LiveView hits 1.0.
-
How to get started with LiveView?
I suggest cloning down an actual LiveView project (maybe this one?) and making changes to it. That will help you get a grip on things more easily than trying to build something from scratch right away.
What are some alternatives?
cowboy - Small, fast, modern HTTP server for Erlang/OTP.
mix_install_examples - A collection of simple Elixir scripts that are using Mix.install/2.
elixir-ls - A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol"
FunkyABX - Audio blind tests
unsplit - Resolves conflicts in Mnesia after network splits
http - HTTP server for Elixir
phoenix-liveview-stopwatch - ⏱️ Ultra-simple Stopwatch App using Phoenix LiveView
json_view - Elixir library to render Json with relationship
eqwalizer - A type-checker for Erlang
elixir_koans - Elixir learning exercises