Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

three things i find to be true of every web app i work on:

1. good logging is the most important part of the app. whatever the app is meant to do is secondary. the app should be a logging app first, and then a backend service to sell widgets second.

2. assume performance requirements for request latency and transactions per second will be at least 3x whatever the product owner tells you at the start of the project and plan accordingly. never trust any suggestion that you can 'ignore performance for now'.

3. the UI may be more important than logging



Logging at the boundaries or seems is especially helpful.


Can you elaborate on what you mean by a boundary? You mean logging the interface between two services or modules?


Boundaries between anything. I recently was dealing with an issue in a Jenkins pipeline, where I didn't realise that state was being serialized to string form between job stages until I explicitly logged it out. The thing that was a list in the previous stage was suddenly a string, but then Groovy would happily accept the join method on a string because it's still an iterable. Auuugh.


Both these above are great answers. It's a bit of an art.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: