
TheSwitch
Practical Microservices:
The code for this book was written several years ago. I’m struggling to get things working with current tools. Even running the code included with the book doesn’t work anymore. For instance, taking the first-pass code, running the database using the docker-compose.yaml file, I get timeouts trying to connect to the database. So, the question is, is there a route for getting support to be able to use the content of the book using current tools, or is this book now essentially pointless because the examples are no longer valid?
Most Liked

ethangarofolo
Hi there, author here.
When I wrote the book, Node’s current LTS was v12. Shortly after publication, Node went to LTS 14, and that broke the node pg
package’s current version.
So, that leaves you with a couple of options. If you run Node v12, which is what the package.json specifies, everything should run fine with the code as-is. I would find this solution rather unsatisfying, but if it works for your purposes, go for it!
Otherwise, if you’re on 13.x+, then you’ll need to update to the latest version of the pg
package. That should get it going.
Popular Prag Prog topics








Modern front-end development for Rails, second edition - Struggling to get the first chapter to work


Other popular topics










Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /ash
- /centos
- /php
- /deepseek
- /zig
- /scala
- /html
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /textmate
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /manjaro
- /spring
- /django
- /diversity
- /nodejs
- /lua
- /julia
- /slackware
- /c
- /neovim