11

Live Latency Comparison Among Serverless Databases

 3 years ago
source link: https://news-app-two-omega.vercel.app/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Live Latency Comparison Among Serverless Databases

This single page application compares the latencies of three serverless databases (DynamoDB, FaunaDB, Upstash (Redis)) for a common web usecase.

I have inserted 7001 news articles into each database. The articles are collected from New York Times Archive API(all articles of January 2021). I randomly scored each news article. At each page request, I query top 10 articles under `World` section from each database.

I use serverless functions (AWS Lambda) to load the articles from each database. Response time of fetching 10 articles is being recorded as latency inside the lambda function.

Here the latency of the current request:⟳
DynamoDB: 6 ms | FaunaDB: 666 ms | Upstash: 1 ms

See the blog post for the details.

The latency numbers so far:
50th Percentile (latency in milliseconds):
DynamoDBFaunaDBUpstash02004006005547111milliseconds
Databasep50 latency (ms)DynamoDB5FaunaDB471Upstash1
Databasep50 latency (ms)DynamoDB5FaunaDB471Upstash1
Databasep50 latency (ms)DynamoDB5FaunaDB471Upstash1
99th Percentile (latency in milliseconds):
DynamoDBFaunaDBUpstash05001,0001,5001521521,2804343milliseconds
Databasep99 latency (ms)DynamoDB152FaunaDB1,280Upstash43
Databasep99 latency (ms)DynamoDB152FaunaDB1,280Upstash43
Databasep99 latency (ms)DynamoDB152FaunaDB1,280Upstash43
99.9th Percentile (latency in milliseconds):
DynamoDBFaunaDBUpstash01,0002,0003,0002532532,1207676milliseconds
Databasep99.9 latency (ms)DynamoDB253FaunaDB2,120Upstash76
Databasep99.9 latency (ms)DynamoDB253FaunaDB2,120Upstash76
Databasep99.9 latency (ms)DynamoDB253FaunaDB2,120Upstash76
Seethe full histogram|the blog post|the source code

Enjoy the news!
merlin_163171161_a2256668-6b04-4ea5-97ef-f5f522c66a45-articleLarge.jpg
Smugglers Get Long Prison Terms in U.K. for Their Roles in Killing 39 Migrants
The migrants had paid thousands of dollars to try to reach a better life abroad. Instead, they suffered an excruciating death, suffocating in an airtight container.
england-covid-hospitals-promo-1610661784450-articleLarge-v2.png
Hospitals in England Struggle in the Grip of the Virus
The number of hospitalized Covid-19 patients in England has risen sharply in the last three weeks and now dwarfs the spring peak by 70 percent.
merlin_182327316_a8da6046-58ff-4d5f-ac0a-806c191be1c8-articleLarge.jpg
How British Scientists Found the More Infectious Coronavirus Variant
Back in March, researchers decided to routinely record the genetic sequences of the virus they found, giving them a powerful tool for tracking mutations.
19Canada-survivor-03-articleLarge.jpg
Teenager’s Snow Cave Enters Canadian Survival Lore
The tale of a British Columbia teenager’s canny survival instincts during a snowmobile outing has brought some pandemic cheer to Canada.
merlin_181730499_379ddfdd-130f-4661-a9de-5ee5447a9d29-articleLarge.jpg
Thai Caves Attract Millions of Bats — and Now Scientists Too
A cave complex at a temple in Thailand has long drawn tourists, pilgrims and guano collectors. Now, scientists have arrived, looking for any potential links to the coronavirus.
merlin_182331411_f7420fea-762e-4586-81e3-13f728810153-articleLarge.jpg
Germany’s Buchenwald Memorial Urges Visitors to Respect Graves
After some visitors went sledding on graves at the former Nazi concentration camp, the foundation running the memorial stepped up security this week.
merlin_180179394_624645e5-5393-48c3-b3a6-3f31bba0a712-articleLarge.jpg
Mexico Exonerates Ex-Defense Chief Who Was Freed by the U.S.
Gen. Salvador Cienfuegos Zepeda returned to Mexico last year after the Department of Justice abruptly dropped drug-trafficking and corruption charges.
04virus-briefing-office-future-articleLarge.jpg
Post-Covid offices could be more dynamic than ever.
Coronavirus will not kill the office, Dror Poleg writes for The Upshot.
merlin_182369190_6df7bc87-4f5e-4869-b64a-e7ad574b47e8-articleLarge.jpg
A Mix of Pride and Doubts as Modi Launches India’s Covid-19 Vaccine Drive
One of the world’s largest inoculation programs is set to begin on Saturday, but experts have questioned the data behind one of the country’s two vaccines — and patients don’t get to pick their shot.
merlin_181904046_a05778b9-3d83-4514-b2c4-c7fb06beccd5-articleLarge.jpg
Armed Attackers Kidnap and Kill 11 Miners in Pakistan
Officials said all the victims were ethnic Hazaras, a Shiite minority group that Sunni extremists have often targeted.
merlin_178316523_927e197e-afb1-4ec2-bb3c-53ea127627c7-articleLarge.jpg
China to Stop Recognizing Special U.K. Passports for Hong Kongers
The move was in retaliation for Britain’s offer to grant potentially millions of Hong Kong residents a path to citizenship, amid Beijing’s crackdown on the city.
merlin_182699127_8c869eeb-4406-4310-b2af-e58de65d5905-articleLarge.jpg
Truckers Shun U.K. Ports to Avoid Brexit Red Tape
British ports expected gridlock after post-Brexit trade rules began on Jan. 1. Instead, some are nearly empty as truckers stay away, reluctant to spend hours waiting for newly required export documents.
merlin_182685294_12c1cb58-ee1e-4661-8237-1f376d738b2e-articleLarge.jpg
Long Lines as Beijing Starts Mass Coronavirus Testing
The authorities in Beijing set up temporary testing sites after a spike in coronavirus infections. Long lines formed as the city tested nearly two million people on Friday.
merlin_182733843_d65f373c-e997-4c09-8686-21bb2418b489-articleLarge.jpg
In Aleksei Navalny Protests, Russia Faces Biggest Dissent in Years
Demonstrations in support of the jailed opposition leader swept the nation, beginning in the Far East, where people braved subzero temperatures, and reaching the capital. Arrests climbed into the thousands.
merlin_180467079_573bb5c0-a2af-4fca-b84c-47100056c3af-articleLarge.jpg
With the virus subdued, China enjoys its own kind of freedom.
While many countries are still reeling from Covid-19, China — where the pandemic originated — has become one of the safest places in the world. The country reported fewer than 100,000 infections for all of 2020. The United States has been reporting more than that every day since early November.
merlin_161329890_08d08a01-8506-406f-a97b-9f5775755917-articleLarge.jpg
7 Dead in Military Helicopter Crash in Southern Philippines
The helicopter had been on a supply run to troops in a remote, mountainous region where a hunt for communist rebels was taking place, the military said.
merlin_182536575_3e3b0b71-b3b1-44ca-9da8-861cba0d7524-articleLarge.jpg
Italy’s Prime Minister Resigns After Weeks of Infighting
Intrigue chipped away at Prime Minister Giuseppe Conte’s parliamentary majority even as the country’s coronavirus death toll passed 85,000.
merlin_152078466_cfa6d928-baab-4b7e-8ee2-110e5a0242ac-articleLarge.jpg
Partner of Norwegian Ex-Minister Is Sentenced for Staging Attacks
Laila Anita Bertheussen was accused of vandalizing her own house and car and of sending threatening letters in an effort to blame a theater company for breaching her privacy.
merlin_181829574_0266d8e6-15ea-48c1-9294-76f5b9203b10-articleLarge.jpg
How Israel Became a World Leader in Vaccinating Against Covid-19
Badly hit by the coronavirus, Israel has distributed the first of two vaccine doses to more than 10 percent of its population. Prime Minister Netanyahu is leading the charge, bolstering his own battered image along the way.
01italy-migrant1-articleLarge-v2.jpg
Italy Mourns an Immigrant’s Life Cut Short
The killing of Agitu Ideo Gudeta, a successful business owner from Ethiopia who raised goats and made cheese, has resonated across the country. The police say a farmhand was responsible.
merlin_152078466_cfa6d928-baab-4b7e-8ee2-110e5a0242ac-articleLarge.jpg
Partner of Norwegian Ex-Minister Is Sentenced for Staging Attacks
Laila Anita Bertheussen was accused of vandalizing her own house and car and of sending threatening letters in an effort to blame a theater company for breaching her privacy.
merlin_182068830_cf922604-93e7-47aa-882f-1e25579f0911-articleLarge.jpg
Overshadowed by events in Washington, the virus was deadlier than ever.
As Americans were transfixed by the spectacle of the Capitol under siege, the coronavirus continued to sweep across the United States.
merlin_182575686_bac3399f-82fb-49d2-8dd8-11bdcaa7ee2c-articleLarge.jpg
Olympic Athlete Speaks of Assault and Breaks a Bigger Silence in Greece
Sofia Bekatorou, a sailing champion, said she was sexually assaulted by a top sports official, prompting an outpouring of support in a country where the issue has long been ignored.
merlin_182221380_b3073bf1-3a0c-4e5d-b6a5-99b0871350ff-articleLarge.jpg
‘I’m Still Shocked’: Indonesian Airline Crash Shakes Small Fishing Village
A sleepy island has become a base for the aircraft search and recovery operation after Sriwijaya Air Flight 182 fell from the sky. “I’m lucky it didn’t hit me,” said one fisherman.
00China-Diplomacy01-articleLarge-v3.jpg
With Concessions and Deals, China’s Leader Tries to Box Out Biden
Xi Jinping has been making trade agreements in Asia and now Europe, hoping to head off the incoming president’s efforts to rally a united front against China.
merlin_181837032_3325e95d-c526-4ce0-a5c5-d7cb9a981b1d-articleLarge.jpg
In Reversal, Pentagon Announces Aircraft Carrier Nimitz Will Remain in Middle East
The acting defense secretary abruptly reversed his previous order to redeploy the Nimitz, which he had done over the objections of his top military advisers.
merlin_180779766_cecb9693-807e-4eb3-a2b9-b40bd600dae2-articleLarge.jpg
Infections remain comparatively rare among children but are rising, the C.D.C. says.
After falling over the summer, coronavirus infections among children, teens and young adults rose steadily from September through mid-December, paralleling the virus’s trajectory among older adults in the U.S. population, the Centers for Disease Control and Prevention reported on Wednesday.
ios-ipad-144x144-28865b72953380a40aa43318108876cb.png
Scotland goes back into lockdown as the new variant of the virus gains a foothold.
Citing a steep increase in coronavirus cases and pressure on the National Health Service, Scotland’s first minister, Nicola Sturgeon, announced a new lockdown on Monday that will last until at least the end of January.
merlin_181837032_3325e95d-c526-4ce0-a5c5-d7cb9a981b1d-articleLarge.jpg
In Reversal, Pentagon Announces Aircraft Carrier Nimitz Will Remain in Middle East
The acting defense secretary abruptly reversed his previous order to redeploy the Nimitz, which he had done over the objections of his top military advisers.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK