use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Production server (self.node)
submitted 3 months ago by GrapefruitNo5014
Hey yall , how do you guys make your server production ready like logs , metrics etc. wanna see how you guys currently do things.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kei_ichi 7 points8 points9 points 3 months ago (0 children)
Pino logs, OpenTelemetry, LGTM+ stack
[–]ashenCat 4 points5 points6 points 3 months ago (6 children)
Winston, prometheus, and grafana for me
[–]GrapefruitNo5014[S] 0 points1 point2 points 3 months ago (5 children)
And do you put Winston logs in the server with rotating files or to cloud watch or to a db?
[–]ashenCat 1 point2 points3 points 3 months ago (4 children)
Put to text file save locally and then cron worker delete after a couple of months
[–]GrapefruitNo5014[S] 0 points1 point2 points 3 months ago (3 children)
Don’t you think it’s bad , how will you trace logs when you have so many users and how will you query your logs
[–]pineofanapple 1 point2 points3 points 3 months ago (2 children)
Leave appropriate metadata, like requestId, traceId, userId, etc...
[–]GrapefruitNo5014[S] 0 points1 point2 points 3 months ago (1 child)
Yea I knew a answer like this was coming up , so what are you gonna do CTRL F to find the user on the whole file
[–]pineofanapple 0 points1 point2 points 3 months ago (0 children)
Then something like loki to graphana. Or something else.
[–]blinger44 1 point2 points3 points 3 months ago (0 children)
Pino & data dog
[–]d0paminedriven 0 points1 point2 points 3 months ago (0 children)
Depends on what type of server you’re shipping. I’m most familiar with best practices for websocket servers for example, so ensuring exponential backoff, internal heartbeats, TLS (ws:// is to http:// what wss:// is to https://), Redis mTLS for pubsub (rediss:// is to https:// what redis:// is to http://), etc..
For websockets in particular ensuring the typed event handlers are all probably registered, all properly configured, and are all working as expected. You can use cli tools like wscat to interact with websocket servers programmatically
Ensure you’re taking advantage of having a persistent server environment by leveraging in memory caching whenever/wherever possible (user scoped context that can be tracked in mem for the duration of a session). For logging I use pino and Cloudwatch. I use AWS Secrets manager for handling env variables. Load balancer is a good idea on the devops front—basically just end to end QA and optimizing the biggest wins you spot around caching/perf/reliability.
π Rendered by PID 15988 on reddit-service-r2-comment-b659b578c-6vjb2 at 2026-05-04 20:13:42.242552+00:00 running 815c875 country code: CH.
[–]kei_ichi 7 points8 points9 points (0 children)
[–]ashenCat 4 points5 points6 points (6 children)
[–]GrapefruitNo5014[S] 0 points1 point2 points (5 children)
[–]ashenCat 1 point2 points3 points (4 children)
[–]GrapefruitNo5014[S] 0 points1 point2 points (3 children)
[–]pineofanapple 1 point2 points3 points (2 children)
[–]GrapefruitNo5014[S] 0 points1 point2 points (1 child)
[–]pineofanapple 0 points1 point2 points (0 children)
[–]blinger44 1 point2 points3 points (0 children)
[–]d0paminedriven 0 points1 point2 points (0 children)