Nest → Go #2 — The `counter++` That Was a Bug
In Nest I give every request an id with a counter. One line, and I never think about it again:
let seq = 0;
function requestId() {
return `req-${++seq}`; // safe. always.
}
It's safe in Node becaus
bswebdev.hashnode.dev4 min read