commanded VS plug

Compare commanded vs plug and see what are their differences.

commanded

Use Commanded to build Elixir CQRS/ES applications (by commanded)

plug

Compose web applications with functions (by elixir-plug)
Our great sponsors
  • Paraxial.io - Bot detection and prevention for Elixir/Phoenix applications
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
commanded plug
2 3
1,521 2,522
1.4% 1.0%
7.3 8.2
19 days ago 1 day ago
Elixir Elixir
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

commanded

Posts with mentions or reviews of commanded. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-05-10.
  • Using CQRS in a simple Phoenix API with Commanded
    7 projects | dev.to | 10 May 2022
    The Commanded hex package is a fabulous CQRS library used by some real companies in production, but it doesn't have a great on-ramp.
  • Phoenix LiveView, but event-sourced
    6 projects | dev.to | 16 Jan 2022
    The context: I'm building a cryptocurrency exchange application. I don't have the business chops to run an actual exchange, so this is just for fun. The application is built in Elixir, using the Commanded framework for CQRS/ES goodness, and Phoenix LiveView because it's the hot new thing that I wanted to learn.

plug

Posts with mentions or reviews of plug. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-06.
  • Request Coalescing in Async Rust
    4 projects | news.ycombinator.com | 6 Mar 2022
    Coming from the Ruby ecosystem, a lot of this played out similarly to how the Rack[1] middleware conventions developed in the early Rails v1 and v2 days. Prior to Rack there was a lot of fragmentation in HTTP server libraries, post-Rack everything more or less played nicely as long as libraries implemented Rack interfaces.

    I don't write Rust professionally, but it was a bummer seeing that this seems to be a place that was figured out (painfully) in ecosystems used heavily for web development--Javascript and Elixir have their own Rack equivalents[2][3]. I hope that Tower plays a similar role to unify the library ecosystem in Rust.

    1. https://github.com/rack/rack

    2. http://expressjs.com/en/guide/writing-middleware.html

    3. https://github.com/elixir-plug/plug

  • Learn how to deploy Elixir apps on Heroku
    8 projects | dev.to | 12 Feb 2021
    If you're not familiar with it, feel free to check the inner workings of Plug in their documentation. For now, the code above is fairly self-explanatory I hope. All we need to know is that we're using the Plug.Router capabilities and exposing an endpoint /bpi which we're going to use to retrieve our data and to show it.
  • For Web Developers The Stakes Are Generally Lower
    1 project | reddit.com/r/programmingcirclejerk | 31 Dec 2020
    Well if Phoenix came with the ability to use Sqlite I'd definitely like it a lot better for smaller sites. Maybe if Elixir had something like Sinatra. I guess using Cowboy or Plug could work.

What are some alternatives?

When comparing commanded and plug you can also consider the following projects:

phoenix_ecto - Phoenix and Ecto integration with support for concurrent acceptance testing

Raxx - Interface for HTTP webservers, frameworks and clients

ex_admin - ExAdmin is an auto administration package for Elixir and the Phoenix Framework

phoenix_slime - Phoenix Template Engine for Slime

phoenix_pubsub_redis - The Redis PubSub adapter for the Phoenix framework

phoenix_live_reload - Provides live-reload functionality for Phoenix

phoenix_html - Phoenix.HTML functions for working with HTML strings and templates

react_phoenix - Make rendering React.js components in Phoenix easy

rummage_phoenix - Full Phoenix Support for Rummage. It can be used for searching, sorting and paginating collections in phoenix.

rummage_ecto - Search, Sort and Pagination for ecto queries

params - Easy parameters validation/casting with Ecto.Schema, akin to Rails' strong parameters.

multiverse - Elixir package that allows to add compatibility layers via API gateways.