GenStage, Plug, Hooks, ...

37 views
Skip to first unread message

Manuel Rubio

unread,
Sep 17, 2018, 6:12:21 AM9/17/18
to elixir-l...@googlegroups.com
Hello,

I was thinking to create a system which let me to plug some functionalities in future like ejabberd or MongooseIM does with hooks:


The point is, if I have a dynamic pipeline created to process sequentially data, let me to include in that pipeline new code without modify the original code.

I thought in Plug but I'm not sure if, for a Plug created in other module I can modify it to include the call of other functions.

Also thought about GenStage and Flow, but the same, I'm not sure if I can deconstruct them to include extra processing in the same way.

Kind regards.
Manuel Rubio.

Andrea Leopardi

unread,
Sep 17, 2018, 6:17:18 AM9/17/18
to elixir-lang-core
Hey Manuel,

the elixir-lang-core mailing list is reserved for discussions on the language and on language features. For example, you would write here if you had a proposal for a new feature to add to Elixir. This is outlined in this page: https://elixir-lang.org/development.html.

I think your post might be a better fit for the Elixir Forum (https://elixirforum.com), where discussions similar to this happen daily.

Andrea Leopardi


--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAC58Cc0Rxv1PV6VSHp9MxAnnzy_2Bn2hm7d2buJz0O85a3KVNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages