 
  		        victorhazbun
Real-World Event Sourcing: broadcast_message usage and explanation
Real-World Event Sourcing: broadcast_message usage and explanation
- Page: 61
- Version: B2.0
- Book type: EPUB
The function broadcast_message/1 is defined but never actually invoked in the examples, and its explanation is too brief.
The broadcast_message function is to be called by whatever component wishes to perform an injection. The message (if necessary) is converted into a cloud event and then passed down to any interested stage consumers.
Function definition:
  @doc """
  Injects a raw message that is not in cloud event format
  """
  def broadcast_message(message) do
    GenStage.call(__MODULE__, {:notify, message})
  end
However, the current text does not show who should call it, nor does it provide an example of usage in the context of the pipeline. This leaves readers uncertain about when and how to use it.
Suggested improvement:
- Clarify in the text which components are expected to call broadcast_message/1.
- Provide a small code snippet showing a realistic call (e.g., from an external producer or test) so that readers can see the injection mechanism in action.
Popular Pragmatic Bookshelf topics
                         
                      
                       
          
                Title: Web Development with Clojure, Third Edition - migrations/create not working: p159 
When I execute the command: 
user=> (create-...
              
            
            
          
              New
 
          
                Hi @venkats, 
It has been mentioned in the description of ‘Supervisory Job’ title that 2 things as mentioned below result in the same eff...
              
            
            
          
              New
 
          
                This isn’t directly about the book contents so maybe not the right forum…but in some of the code apps (e.g. turbo/06) it sends a TURBO_ST...
              
            
            
          
              New
 
          
                This is as much a suggestion as a question, as a note for others. 
Locally the SGP30 wasn’t available, so I ordered a SGP40. On page 53, ...
              
            
            
          
              New
 
          
                In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
              
            
            
          
              New
 
          
                Is the book’s epub format available to read on Google Play Books?
              
            
            
          
              New
 
          
                Skimming ahead, much of the following is explained in Chapter 3, but new readers (like me!) will hit a roadblock in Chapter 2 with their ...
              
            
            
          
              New
 
          Modern Front-End Development for Rails - application does not start after run bin/setup (page xviii)
                After some hassle, I was able to finally run bin/setup, now I have started the rails server but I get this error message right when I vis...
              
            
            
          
              New
 
          
                root_layout: {PentoWeb.LayoutView, :root}, 
This results in the following following error: 
no “root” html template defined for PentoWeb...
              
            
            
          
              New
 
          
                Hello faithful readers!  If you have tried to follow along in the book, you are asked to start up the dev environment via dx/build and ar...
              
            
            
          
              New
Other popular topics
                         
                      
                       
          
                Which, if any, games do you play? On what platform? 
I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
              
            
            
          
              New
 
          
                SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
              
            
            
          
              New
 
          
                Just done a fresh install of macOS Big Sur and on installing Erlang I am getting: 
asdf install erlang 23.1.2
Configure failed.
checking ...
              
            
            
          
              New
 
          
                Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
              
            
            
          
              New
 
          
                Think Again 50% Off Sale »
The theme of this sale is new perspectives on familiar topics. 
Enter coupon code ThinkAgain2021 at checkout t...
              
            
            
          
              New
 
          
                Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
              
            
            
              
          
              New
 
          
                I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
              
            
            
          
              New
 
          
                I have always used antique keyboards like Cherry MX 1800 or Cherry MX 8100 and almost always have modified the switches in some way, like...
              
            
            
          
              New
 
          
                Author Spotlight: 
Bruce Tate 
@redrapids 
Programming languages always emerge out of need, and if that’s not always true, they’re defin...
              
            
            
          
              New
 
          
                A Brief Review of the Minisforum V3 AMD Tablet. 
Update: I have created an awesome-minisforum-v3 GitHub repository to list information fo...
              
            
            
              
          
              New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /rails
- /js
- /security
- /go
- /swift
- /vim
- /clojure
- /haskell
- /emacs
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /c-plus-plus
- /crystal
- /tailwind
- /react
- /gleam
- /ocaml
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /zig
- /deepseek
- /scala
- /sublime-text
- /lisp
- /textmate
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /deno
- /ubuntu
- /nodejs
- /spring
- /manjaro
- /diversity
- /lua
- /julia
- /slackware
- /c
 
    





