![]() Plug is a specification for constructing composable modules to build web applications. abstracts the underlying pubsub adapter for third-party pubsub integration.underlies the channel layer and allows clients to subscribe to topics.are analogous to controllers except that they allow bi-directional communication with persistent connections.manage sockets for easy realtime communication.define helper functions, available in templates, to decorate data for presentation.provide functions, called actions, to handle requests.allow easy application of groups of plugs to a set of routes.defines named pipelines through which we may pass our requests.provides helpers to generate route paths or urls to resources. ![]() parses incoming requests and dispatches them to the correct controller/action, passing parameters as needed.dispatches requests into a designated router.provides a core set of plugs to apply to all requests.handles all aspects of requests up until the point where the router takes over.We will cover them all in depth throughout these guides, but here’s a quick breakdown. Phoenix is made up of a number of distinct parts, each with its own purpose and role to play in building a web application. The Erlang HTTP server, Cowboy, acts as the foundation for Plug and Phoenix, but we won’t be covering Cowboy directly in these guides. The other layers include Plug, and Ecto, which we will cover right after Phoenix in this overview. Phoenix is actually the top layer of a multi-layer system designed to be modular and flexible. The aim of this introductory guide is to present a brief, high-level overview of Phoenix, the parts that make it up, and the layers underneath that support it. ![]() We also have a list of helpful resources in the Learning Elixir and Erlang Guide. The Elixir guides are a great place to start. If you are already familiar with Elixir, great! If not, there are a number of places to learn. ![]() It also has some interesting new twists like channels for implementing realtime features and pre-compiled templates for blazing speed. Phoenix provides the best of both worlds - high developer productivity and high application performance. Many of its components and concepts will seem familiar to those of us with experience in other web frameworks like Ruby on Rails or Python’s Django. Phoenix is a web development framework written in Elixir which implements the server-side MVC pattern. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |