OvermindDL1

OvermindDL1

PhoenixFramework HTTP/2

I’ve been trying to see if Phoenix supports HTTP/2 but I am not able to see any hint of a sign of negotiation or how to PUSH data over HTTP/2? It would be nice if, say, the View’s could specify mandatory files to be pushed to the browser based on their knowledge of the templates for example. Is there something that I am missing?

Most Liked

hubertlepicki

hubertlepicki

OK, so the situation is as follows:

  1. Cowboy has just got support for HTTP/2. I do not think it’s complete nor stable at the moment.
  2. HTTP/2 in Elixir is going to be mainly handled by Plug.
  3. Plug may require some significant changes to support HTTP/2 fully
  4. Plug/Phoenix guys are waiting for the final/stable Cowboy’s implementation before they make any moves towards HTTP/2 support. Which is probably reasonable.
13
Post #3
josevalim

josevalim

Creator of Elixir

Here is the relevant issue: HTTP/2 support · Issue #258 · elixir-plug/plug · GitHub

TL;DR - there are some developers exploring HTTP2 with Plug and Phoenix already (potatosalad is awesome). There are also production ready implementations of HTTP2 in Erlang (Chatterbox) beyond the one in Cowboy master. If you need HTTP2 and you cannot wait for Plug/Phoenix, then you can always use directly from Cowboy master or Chatterbox.

ChaseGilliam

ChaseGilliam

Ok @aseigo here it is as promised, and only 4 weeks delayed :slight_smile: !

I pushed this out quickly because it had been sitting in my drafts for a few weeks, so let me know if anything seems off.

Where Next?

Popular in Questions Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36128 110
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47930 226
New
hariharasudhan94
Lets say i have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => "XXX...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement