ethangarofolo
  									Author of Practical Microservices
  			          
  						Practical Microservices: Use of `userId` inside of message `metadata` attribute
There are a few places in the book where I recommended putting a userId attribute inside of metadata.  I consider that advice a mistake now.
metadata is about the mechanics of messaging, and if a user’s id matters to a component’s domain, then it belongs in the data and not the metadata.
Sorry for the confusion, and happy coding!
Popular Pragmatic Bookshelf topics
                        
                      
                      
                This test is broken right out of the box… 
— FAIL: TestAgent (7.82s) 
agent_test.go:77: 
Error Trace:    agent_test.go:77 
agent_test.go:...
              
            
            
          
              New
                In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
              
            
            
          
              New
                Hi everyone! 
There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
              
            
            
          
              New
                Title: Hands-on Rust: question about get_component (page 295) 
(feel free to respond. “You dug you’re own hole… good luck”) 
I have somet...
              
            
            
          
              New
                The book has the same “Problem space/Solution space” diagram on page 18 as is on page 17.  The correct Problem/Solution space diagrams ar...
              
            
            
          
              New
                When trying to run tox in parallel as explained on page 151, I got the following error: 
tox: error: argument -p/–parallel: expected one...
              
            
            
          
              New
                Hi, 
I am getting an error I cannot figure out on my test. 
I have what I think is the exact code from the book, other than I changed “us...
              
            
            
          
              New
                Hi all, 
currently I wonder how the Tailwind colours work (or don’t work). 
For example, in app/views/layouts/application.html.erb I have...
              
            
            
          
              New
                AWDWR 7, page 152, page 153: 
Hello everyone, 
I’m a little bit lost on the hotwire part. I didn’t fully understand it. 
On page 152 @rub...
              
            
            
          
              New
                I’ve got to the end of Ch. 11, and the app runs, with all tabs displaying what they should – at first.  After switching around between St...
              
            
            
          
              New
Other popular topics
                        
                      
                      
                Please tell us what is your preferred monitor setup for programming(not gaming) and why you have chosen it. 
Does your monitor have eye p...
              
            
            
          
              New
                No chair. I have a standing desk. 
This post was split into a dedicated thread from our thread about chairs :slight_smile:
              
            
            
          
              New
                poll
poll
Be sure to check out @Dusty’s article posted here: An Introduction to Alternative Keyboard Layouts It’s one of the best write-...
              
            
            
              
          
              New
                This looks like a stunning keycap set :orange_heart: 
A LEGENDARY KEYBOARD LIVES ON
When you bought an Apple Macintosh computer in the e...
              
            
            
          
              New
                Use WebRTC to build web applications that stream media and data in real time directly from one user to another, all in the browser.
  
...
              
            
            
              
          
              New
                Biggest jackpot ever apparently! :upside_down_face: 
I don’t (usually) gamble/play the lottery, but working on a program to predict the...
              
            
            
          
              New
                A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
              
            
            
          
              New
                Author Spotlight 
Jamis Buck 
@jamis 
This month, we have the pleasure of spotlighting author Jamis Buck, who has written Mazes for Prog...
              
            
            
          
              New
                Big O Notation can make your code faster by orders of magnitude. Get the hands-on info you need to master data structures and algorithms ...
              
            
            
              
          
              New
                I’m able to do the “artistic” part of game-development; character designing/modeling, music, environment modeling, etc. 
However, I don’t...
              
            
            
          
              New
Latest in Practical Microservices
Categories:
Sub Categories:
Popular Portals
- /elixir
 - /rust
 - /ruby
 - /wasm
 - /erlang
 - /phoenix
 - /keyboards
 - /python
 - /rails
 - /js
 - /security
 - /go
 - /swift
 - /vim
 - /clojure
 - /emacs
 - /haskell
 - /java
 - /svelte
 - /onivim
 - /typescript
 - /kotlin
 - /c-plus-plus
 - /crystal
 - /tailwind
 - /react
 - /gleam
 - /ocaml
 - /flutter
 - /elm
 - /vscode
 - /ash
 - /opensuse
 - /html
 - /centos
 - /php
 - /zig
 - /deepseek
 - /scala
 - /sublime-text
 - /lisp
 - /textmate
 - /react-native
 - /nixos
 - /debian
 - /agda
 - /kubuntu
 - /arch-linux
 - /django
 - /deno
 - /revery
 - /ubuntu
 - /spring
 - /nodejs
 - /manjaro
 - /diversity
 - /lua
 - /julia
 - /c
 - /slackware
 
    





