TL;DR: Many IT professionals face a gap between theoretical knowledge and practical application when preparing for PowerShell exams, leading to a need for engaging, hands-on practice. This post addresses this by outlining solutions such as structured practice scenarios in lab environments, gamified learning platforms like PowerShell Koan...
I work on an ERP system that integrates with various external systems like warehouse management systems, accounting softwares, weighing bridges, etc. When something changes in our system like an order is created, or a shipment is dispatched, multiple external systems need to know about it.
We use domain events internally, and translate those into HTTP webhooks for external consumers.
The task is to implement an Event emitter.
The boilerplate code
class EventEmitter {
subscribe(eventName, callback) {
}
emit(eventName, ...args) {
}
}
Each event name maps to an array of listener functions.
TL;DR: Pacemaker’s default auto-failback behavior can disrupt an active DRBD primary by attempting premature promotion on a recovering node, leading to service outages and potential data risks. This issue can be prevented by configuring negative resource stickiness, implementing manual failback, or carefully setting up graceful and delay...
When I started learning Go after Java, I assumed concurrency would feel familiar.
Both languages support running code in parallel, so I expected the concepts to transfer easily.
What surprised me was not the syntax, but the way Go encourages you to think about concurrency.
This post is Part 1 of a small series where I compare Java threading and Go concurrenc...
This is intended to be my personal note of what I will do after installing Fedora Silverblue.
But why does it have to be Fedora Silverblue?
Because it's so simple to use, i.e., it's so simple to debug, since the core is immutable and the update process is atomic. Moreover, as almost everything is being layered on the base system, you can start anew easily without affect...