phoenix framework - What is Elixir Plug? -
Generally speaking as a newcomer for both alixir and web domain (no web framework experience) I would like to know, what is the plug? As I think the cowboy is a web server (although not Elikang not Amiksr) and a framework for the creation of Phoenix Web application, but comes where plug? Is there an intangible layer between the two or perhaps one plug-in system in the same intangible layer as Phoenix? "post-text" itemprop = "text">
Is it an intangible layer between the two
Yes, of course! Plug means to be a generic adapter for different web servers, we currently only support cowherd but work to support others.
The plug also defines how different components should be plugged together. Rack in Ruby, WSGI in Python, Ring in the Closer, and so on.
Comments
Post a Comment