en.osm.town is one of the many independent Mastodon servers you can use to participate in the fediverse.
An independent, community of OpenStreetMap people on the Fediverse/Mastodon. Funding graciously provided by the OpenStreetMap Foundation.

Server stats:

250
active users

#developerslife

2 posts1 participant2 posts today

🎭 To block or not to block, that is the question.

Let’s suppose we have a stream of events and a pull consumer. The consumer has two methods to fetch: the first is gonna block until it receives something, and the second has a timeout to unblock. My personal rule of thumb is:

- if you need to synchronously consume a single event then process it: use the blocking one, as you’re using the stream like a FIFO queue.
- if you need to fetch ‘n’ events: use the non-blocking one, you might have no warranty that the stream contains (or is able to send) the expected amount of events.

🧠 SQL Mindmap & Daily Life SQL Commands for Developers 🧠

SQL (Structured Query Language) is a powerful tool used by developers to manage and manipulate databases. Whether you're querying data, updating records, or performing complex joins, SQL is essential in daily development tasks. Let’s break it down!