News for hackers. Stuff that matters.
Re:Pocketbase – open-source realtime back end in 1 file by ffsm8 on Friday November 28, 2025 @01:16AM (#46076016)
Is this really realtime?

From looking at the description it sounds more like subscriptions to events of data changes that are dispatched close to the data operation

How would realtime even work for a networked system going over tcp?

https://en.wikipedia.org/wiki/Real-time_computing

Re:Pocketbase – open-source realtime back end in 1 file by SerCe on Friday November 28, 2025 @01:41AM (#46076143)
I believe there is no contradiction with the definition from the linked article?

> A system is said to be real-time if the total correctness of an operation depends not only upon its logical correctness, but also upon the time in which it is performed. Real-time systems, as well as their deadlines, are classified by the consequence of missing a deadline:

> Hard – missing a deadline is a total system failure.

> Firm – infrequent deadline misses are tolerable, but may degrade the system's quality of service. The usefulness of a result is zero after its deadline.

> Soft – the usefulness of a result degrades after its deadline, thereby degrading the system's quality of service.

From what I can tell, https://pocketbase.io/ attempts to be a soft-realtime system.

Re:Pocketbase – open-source realtime back end in 1 file by ffsm8 on Friday November 28, 2025 @04:31AM (#46077093)
Really? I couldn't really see anything wrt degraded performance from my casual glance.

To me, It looks like there are just best effort events with literally no constraints or handling for delays etc

And again, I didn't see how you'd even implement such without being on both sides of the networked connection

I guess I just have to accept that the term has lost it's meaning at this point and can be used for whatever whoever wants to use it for

Re:Pocketbase – open-source realtime back end in 1 file by trailbase on Friday November 28, 2025 @06:37AM (#46077746)
> I guess I just have to accept that the term has lost it's meaning at this point and can be used for whatever whoever wants to use it for

It's maybe more like you point out: realtime in the OS context vs realtime in an event processing context. The latter is certainly not defined as strictly and often just means push-based. It has been a popular moniker, e.g. in kafka-land, for a while. I'm not sure it intrinsically takes away from the OS context - it doesn't need to be a deep dish pizza situation.

Re:Pocketbase – open-source realtime back end in 1 file by phplovesong on Friday November 28, 2025 @01:24AM (#46076059)
There is realtime, and there is "realtime". The other one being realtime in apps doing some sort of music thing, flight controllers etc. Then there is web "realtime" that basically only means 2sec in the past-realtime.
Re:Pocketbase – open-source realtime back end in 1 file by cess11 on Friday November 28, 2025 @02:11AM (#46076280)
It's common to distinguish between hard real-time and soft real-time (and sometimes firm real-time).

This software is supposedly soft real-time, similar to what you'd expect from e.g. an Erlang system. Delayed tasks aren't considered fatal failures but overall you get a user experience close to what hard real-time systems are supposed to deliver.

Re:Pocketbase – open-source realtime back end in 1 file by zwnow on Friday November 28, 2025 @01:18AM (#46076029)
Realtime in tech is considered in timespans with short delays allowed, last time i have read about it it was like 100ms.
Re:Pocketbase – open-source realtime back end in 1 file by anonymousiam on Friday November 28, 2025 @01:47AM (#46076172)
Heh. I wasn't aware that there was a new definition of realtime. My 40+ year career consisted of about 20% realtime embedded firmware development. In all of my experience, 100ms is an absurdly long delay. Most RTOSs (that call themselves such) have latency measured in μs. The last serious RTOS that I wrote (MSP430, non-preemptive) had a firm requirement that any task must complete within 1ms. That one ran on a single threaded MCU clocked at 25MHz. It had a unix-like scheduler, with prioritized tasks, and I even threw in a 'top' display that showed per-task MCU usage, and load average.
Re:Pocketbase – open-source realtime back end in 1 file by JSR_FDED on Friday November 28, 2025 @02:29AM (#46076382)
Yeah, and I’m using Pocketbase as my game engine and it isn’t giving me 60 frames per second either.
Re:Pocketbase – open-source realtime back end in 1 file by zwnow on Friday November 28, 2025 @01:49AM (#46076180)
Well Pocketbase isnt embedded firmware.
Re:Pocketbase – open-source realtime back end in 1 file by SpaceNoodled on Friday November 28, 2025 @01:23PM (#46081272)
And yet they claim to be "embedded performant."
Re:Pocketbase – open-source realtime back end in 1 file by foul on Friday November 28, 2025 @04:01AM (#46076917)
Are you talking about (very good) webapps?

Your average RT software has an average of 10 to 30 ms delay between operations. Performs tasks in the order of nanoseconds.

Re:Pocketbase – open-source realtime back end in 1 file by fragmede on Friday November 28, 2025 @01:21AM (#46076041)
Realtime in tech has a specific definition. The Wikipedia article covers it in more detail, but think about things like airplane wing control or space rocket computers needing to do things exactly when asked, or else people die.
Re:Pocketbase – open-source realtime back end in 1 file by zwnow on Friday November 28, 2025 @01:41AM (#46076139)
Even that stuff has a delay.
Re:Pocketbase – open-source realtime back end in 1 file by anonymousiam on Friday November 28, 2025 @02:18AM (#46076321)
FYI, my above referenced RTOS was for a space-based application.
Re:Pocketbase – open-source realtime back end in 1 file by cweagans on Saturday November 29, 2025 @12:17AM (#46085327)
Different kind of real-time computing. This is referring to data updates being streamed to other subscribed clients automatically (if you choose to implement that).