StasB
@stasb.bsky.social
๐ค 1
๐ฅ 6
๐ 6
Love hardcore software engineering. My blog:
https://github.com/ctapobep/blog/issues
Did you know that locks in one table can block operations in another one? If table B references table A and we update A, the newly inserted B may have nothing to reference anymore. So it has to wait. So.. In
#PostgreSQL
the right way to do pessimistic querying is through SELECT โฆ FOR ๐๐ ๐๐๐ UPDATE.
7 days ago
0
0
0
Did you know you could compare multiple fields at a time in
#SQL
?
9 days ago
1
3
1
How do computers juggle between processes & threads? CPU has a clock component that generates interrupts every N millisec. OS maps this interrupt to its schedule() function. So the CPU gets interrupted in the middle of our code โ jumps into OS โ OS decides which thread to call next.
#computerscience
11 days ago
0
1
0
#Microservices
(esp.
#Kafka
) folks confuse Idempotence and Deduplication. One is about ACTUALLY processing the request twice as if it was processed once. The other is about DROPPING the repeated requests. Deduplication is used if we can't make operation idempotent. See:
github.com/ctapobep/blo...
loading . . .
Idempotence is not the same as Request Deduplication ยท Issue #29 ยท ctapobep/blog
There's a common confusion about Idempotence among the adepts of the message-oriented architecture - they often confuse it with Deduplication. This confusion started long time ago. E.g. the book En...
https://github.com/ctapobep/blog/issues/29
13 days ago
0
0
0
I don't understand why people prepare for interviews. Sure, the beginners simply don't know any better. But experienced people? ๐ค Learning a skill and preparing for interviews are very different: one is shallow, another is deep. There are people who never learn because they always prepare.
14 days ago
0
2
0
Many will be surprised, but all the answers are correct. Why? Because O() is the UPPER boundary. E.g. O(Nยฒ) says the number of operations doesn't exceed Nยฒ. What we USUALLY want to write is ฮ(N logN).
#computerscience
#algorithms
14 days ago
0
1
0
you reached the end!!
feeds!
log in