Readit News logoReadit News
jtregunna commented on Async I/O on Linux in databases   blog.canoozie.net/async-i... · Posted by u/jtregunna
jtregunna · a month ago
Update:

I updated the post based on the conversation below, I wholly missed an important callout about performance, and wasn't super clear that you do need to wait for the completion record to be written before responding to the client. That was implicitly mentioned by writing the completion record coming before responding, but I made it clearer to avoid confusion.

Also the dual WAL approach is worse for latency, unless you can amortize the double write over multiple async writes, so the cost paid amortizes across the batch, but when batch size is closer to 1, the cost is higher.

jtregunna commented on Async I/O on Linux in databases   blog.canoozie.net/async-i... · Posted by u/jtregunna
jtregunna · a month ago
Post talks about how to use io_uring, in the context of building a "database" (a demonstration key-value cache with a write-ahead log), to maintain durability.
jtregunna commented on US Lawmakers Urge Canada to Snub China's Huawei in Telecoms   reuters.com/article/us-us... · Posted by u/nopacience
claydavisss · 7 years ago
> Canada's best interests are different than those of the US.

Not really. Canada's economy can be described as trade with the US and some other stuff.

jtregunna · 7 years ago
Actually, this is exactly why Canada should be looking for other markets. The US has clearly indicated to us that we can no longer rely on them for trade. It's long overdue, but now is the time we need to act in reducing our dependence on the US, since clearly one dumbass can impact our economy in ways that one dumbass shouldn't be able to.
jtregunna commented on US Lawmakers Urge Canada to Snub China's Huawei in Telecoms   reuters.com/article/us-us... · Posted by u/nopacience
JumpCrisscross · 7 years ago
> Virtually the same trappings and illusions of controls exist in China as well

Secret courts are a shame. Secret directives, on the other hand, can be compatible with the rule of law and an independent judiciary, provided they're lawfully authorized and can be challenged in a court.

At the end of the day, a private citizen (or foreign government) can challenge the U.S. government on equal grounds in a fair court. That is not the case in China.

jtregunna · 7 years ago
> Secret courts are a shame. Secret directives, on the other hand, can be compatible with the rule of law and an independent judiciary, provided they're lawfully authorized and can be challenged in a court.

I presume you also forgot to add this before challenged in a court...

> ..., whistleblowers are protected, and can be ...

You see, because that's the thing with secret directives, they're redacted from the public eye. The only way we get visibility into them isn't with FOIA requests, it's with whistleblowers who feel the government is doing things wrong, and if they're not protected, they rarely come forward.

jtregunna commented on US Lawmakers Urge Canada to Snub China's Huawei in Telecoms   reuters.com/article/us-us... · Posted by u/nopacience
solotronics · 7 years ago
who's goals are more aligned with yours? neighbors to the south who you share a lot in common with or a totalitarian government on the other side of the planet.
jtregunna · 7 years ago
Textbook nonsequiter, well done.
jtregunna commented on US Lawmakers Urge Canada to Snub China's Huawei in Telecoms   reuters.com/article/us-us... · Posted by u/nopacience
r00fus · 7 years ago
Sounds like cutting off your nose to spite your face.
jtregunna · 7 years ago
Uh, not my intent. I'm trying to illustrate that Canada has command and control regulations regarding telecommunication providers that operate in the country, and there are requirements for Canadian control. If equipment were factored into such decisions, that could go a way into resolving this problem. Though it'd probably create others. And for completeness, it's still Canada's decision to make, the rhetoric the US has been sending our way has left many of us feeling like the once good friend and neighbour, has decided that we're a threat to their national security.

EDIT: Clicked too soon.

jtregunna commented on US Lawmakers Urge Canada to Snub China's Huawei in Telecoms   reuters.com/article/us-us... · Posted by u/nopacience
bluGill · 7 years ago
Don't reject good advice just because whoever gave the advice doesn't have your best interest in mind. I've good some good advice from some otherwise awful people. Sometimes following the advice furthered their ends more than mind, but it was still the best course of action for me.
jtregunna · 7 years ago
Sure, doesn't hurt to listen, but at the end of the day, that's just being polite. A courtesy. The decision is still entirely Canada's, and shouldn't be influenced by US congress critters.
jtregunna commented on US Lawmakers Urge Canada to Snub China's Huawei in Telecoms   reuters.com/article/us-us... · Posted by u/nopacience
JumpCrisscross · 7 years ago
> If the US wants the privilege of suggesting how we should run our country, then perhaps they should work on their end to repair the bilateral relationship

This article is based on the comments of two Senators, one a Republican who ran against Trump and the other a Democrat, asking Canada to do something. Given how close the American and Canadian economies are, it is of American concern that information which crosses north of the border might become vulnerable to Chinese exfiltration.

jtregunna · 7 years ago
Sure, just saying, Canada should review any orders it makes towards telecom companies (full disclosure, I started and ran a telecom company from 2001 until 2010) from entirely a Canadian perspective and not account for any input from the US; doubly so given how the US government (like it or not, Trump is their president and reflects their government internationally) has treated Canada over the last year and a half.

u/jtregunna

KarmaCake day158January 1, 2011View Original