Re:Tracing: Structured Logging, but better in every way
by jameshart on Wednesday September 20, 2023 @06:25PM
(#37590987)
But events that another system relies upon are now an API. Be careful not to lock together things that are only superficially similar, as it affects your ability to change them independently.
[ Parent
| on HN ]
Re:Tracing: Structured Logging, but better in every way
by thangalin on Wednesday September 20, 2023 @06:36PM
(#37591052)
Architecturally, the decoupling works as follows:
Event -> Bus -> UI Subscriber -> Dialog (table)
Event -> Bus -> Log Subscriber -> Console (text)
Event -> Bus -> D-Bus Subscriber -> Relay -> D-Bus -> Publish (TCP/IP)
With D-Bus, published messages are versioned, allowing for API changes without breaking third-party consumers. The D-Bus Subscriber provides a layer of isolation between the application and the published messages so that the two can vary independently.