Code Monkey home page Code Monkey logo

Comments (6)

Gazler avatar Gazler commented on September 21, 2024

Why would you like to do this? What benefit does it offer over the existing:

  def start(_type, _args) do
    children = [
      MyRepo,
      {Phoenix.PubSub, name: MyPubSub},
      # ....
    ]
  end

from phoenix_pubsub.

yordis avatar yordis commented on September 21, 2024

@Gazler maybe it is a matter of docs, so help me here.

From my perspective, I get to put static configuration and be able to override it the environment much easier, as well as be explicit in terms of the intention that such module and name is used for Phoenix Pub.Sub, and be able to change the adapter per pub/sub.

defmodule MyPubSub do
  use Phoenix.PubSub,
    adapter: Phoenix.PubSub.PG2
end

defmodule AdminPubSub do
  use Phoenix.PubSub,
    adapter: Phoenix.PubSub.PG2
end
# config/prod.exs

config MyPubSub,
      adapter: Phoenix.PubSub.Redis

@chrismccord would appreciate some feedback before closing it thou, people will get to learn about the decision made 🙏🏻

from phoenix_pubsub.

chrismccord avatar chrismccord commented on September 21, 2024

We don't accept feature requests on the issue tracker. The module and config in this case only serves as indirection so the supervision tree is preferred. Thanks!

from phoenix_pubsub.

yordis avatar yordis commented on September 21, 2024

We don't accept feature requests on the issue tracker.

Where do we suppose to send feature requests? It would help in the future to figure out what we suppose to do.

from phoenix_pubsub.

arpunk avatar arpunk commented on September 21, 2024

We don't accept feature requests on the issue tracker.

Where do we suppose to send feature requests? It would help in the future to figure out what we suppose to do.

https://github.com/phoenixframework/phoenix/blob/master/CONTRIBUTING.md#feature-requests

from phoenix_pubsub.

yordis avatar yordis commented on September 21, 2024

@arpunk thank you so much, I will create a PR that helps to understand what to do when creating a new issue.

from phoenix_pubsub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.