Readit News logoReadit News
sumnulu commented on A Starter Kit for Emergency Websites   mxb.dev/blog/emergency-we... · Posted by u/mxbck
kernelsanderz · 6 years ago
I think this is a great idea, and applaud the idea of bringing a high availability, high-load site template available to others.

The number of times I have thought in the past few weeks that if they had just used some static pages on S3 behind Cloudfront, or some kind of CDN, that much pain could have been averted.

Of course the first thing I did was to benchmark the test site to see how their edge network performs. For reference I'm based in Melbourne, Australia, and have a 100mbps download, 50mbps upload connections:

  $ ab -n 10000 -c 100 https://emergency-site.dev/
  This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
  Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  Licensed to The Apache Software Foundation, http://www.apache.org/
  
  Benchmarking emergency-site.dev (be patient)
  Completed 1000 requests
  Completed 2000 requests
  Completed 3000 requests
  Completed 4000 requests
  Completed 5000 requests
  Completed 6000 requests
  Completed 7000 requests
  Completed 8000 requests
  Completed 9000 requests
  Completed 10000 requests
  Finished 10000 requests
  
  
  Server Software:        Netlify
  Server Hostname:        emergency-site.dev
  Server Port:            443
  SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
  TLS Server Name:        emergency-site.dev
  
  Document Path:          /
  Document Length:        4836 bytes
  
  Concurrency Level:      100
  Time taken for tests:   106.534 seconds
  Complete requests:      10000
  Failed requests:        0
  Total transferred:      53220000 bytes
  HTML transferred:       48360000 bytes
  Requests per second:    93.87 [#/sec] (mean)
  Time per request:       1065.345 [ms] (mean)
  Time per request:       10.653 [ms] (mean, across all concurrent requests)
  Transfer rate:          487.85 [Kbytes/sec] received
  
  Connection Times (ms)
                min  mean[+/-sd] median   max
  Connect:      713  808  30.7    803    1828
  Processing:   230  236   4.8    236     443
  Waiting:      230  236   3.9    236     310
  Total:        956 1044  31.7   1039    2067
  
  Percentage of the requests served within a certain time (ms)
    50%   1039
    66%   1047
    75%   1053
    80%   1057
    90%   1070
    95%   1082
    98%   1107
    99%   1168
   100%   2067 (longest request)
I know there's much better ways of testing load/performance. It's just what I had on hand.

sumnulu · 6 years ago
> I know there's much better ways of testing load/performance.

such as

https://github.com/giltene/wrk2

sumnulu commented on JWT is Awesome   thehftguy.com/2020/02/18/... · Posted by u/hieudang9
miguelmota · 6 years ago
Reasons why JWTs are not awesome:

- to revoke a JWT you have to blacklist it in the database so it still requires a database call to check if it's valid.

- JWT are to prevent database calls but a regular request will still hit the database anyway.

- JWT are very large payloads passed around in every request taking up more bandwidth.

- If user is banned or becomes restricted then it still requires database calls to check the state of user.

- JWT spends CPU cycles verifying signature on every request.

- JWTs just aren't good as session tokens which is how a lot of web developers try to use them as. Use a session ID instead.

Where JWT works best:

- when a client can interact with multiple services and each service doesn't need to do a network request to verify (ie federated protocols like OpenID). The client verifies the user's identity via the 3rd party.

- as a 1 time use token that's short lived, such as for downloading files where user gets a token requested from auth server and then sends it to the download server.

sumnulu · 6 years ago
There will be very few black listed tokens, and they are ephemeral. You can use memory replicated datasets, such as CRDTS or just broadcast the whole BL token list to all nodes.

For the size argument, you can use cbor instead of json. (CBOR Web Token) CWT https://tools.ietf.org/html/rfc8392

sumnulu commented on Volkswagen exec admits full self-driving cars 'may never happen'   thedrive.com/tech/31816/k... · Posted by u/stopads
lostlogin · 6 years ago
> Most of the value is in taxi services

I’m imagining how gross a taxi would be that doesn’t have a driver to provide passengers a low level of behaviour moderation.

sumnulu · 6 years ago
Except if you are living in Japan.
sumnulu commented on The physical Apple Card is a case of form over function   jeffgeerling.com/blog/201... · Posted by u/geerlingguy
DenisM · 6 years ago
I was going to suggest destroying the card in a fit of anger, but that won't be easy - titanium is rather strong.
sumnulu · 6 years ago
You can burn it FYI
sumnulu commented on Goldman Sachs is spending $100M to shave milliseconds off stock trades   cnbc.com/2019/08/01/goldm... · Posted by u/gscott
saberdancer · 7 years ago
Those 100m are not destroyed by burning them in an HFT furnace but rather used to pay developers, hardware, factory workers etc. Sure, it's not going directly into infrastructure but it is not lost.

In fact, it's quite possible that if it wasn't invested into HFT it would be held as cash by the company or paid out as a dividend (which is fine as well).

sumnulu · 7 years ago
Burning money is not that bad, even burning 99% of all the money in the world.
sumnulu commented on A Rooftop Device That Can Make Solar Power and Cool Buildings   news.stanford.edu/press-r... · Posted by u/blue_devil
sumnulu · 7 years ago
(video) https://www.ted.com/talks/aaswath_raman_how_we_can_turn_the_...

> "What if we could use the cold darkness of outer space to cool buildings on earth? In this mind-blowing talk, physicist Aaswath Raman details the technology he's developing to harness "night-sky cooling" -- a natural phenomenon where infrared light escapes earth and heads to space, carrying heat along with it -- which could dramatically reduce the energy used by our cooling systems (and the pollution they cause). Learn more about how this approach could lead us towards a future where we intelligently tap into the energy of the universe."

sumnulu commented on Pentagon has a laser that can identify people at a distance by their heartbeat   technologyreview.com/s/61... · Posted by u/davesailer
cardiffspaceman · 7 years ago
This requires your heart to actually beat so the pros and cons on both sides are different:

A thief can't steal your heart.

A thief could still threaten your life.

You can't repudiate your heart.

If you get a heart transplant, at first the 'system' might not have a workflow for changing your expected heart signature.

sumnulu · 7 years ago
Some of them can steal:

  - Jesse James
  - Bonnie and Clyde
  - Arsene Lupin
  - Lupin the third

sumnulu commented on RAMBleed Attack – Reading Bits in Memory Without Accessing Them   rambleed.com/... · Posted by u/ga-vu
air7 · 7 years ago
This is a tangent, but I find it (somewhat) annoying when f.a.q's don't answer their own questions. I see this happen occasionally and I always wonder if it's intentional to side-step an issue by raising it yourself, and then answering something else.

> Can RAMBleed be detected by antivirus? > We believe that it is very unlikely that any antivirus software on the market currently detects RAMBleed.

sumnulu · 7 years ago
I find it the other way around annoying, talking in absolutes when one is not sure.
sumnulu commented on What Happened to 'Miegakure,' the Game That Promised the 4th Dimension? (2018)   vice.com/en_us/article/9k... · Posted by u/zeristor
tehsauce · 7 years ago
I exchanged a couple emails with him years ago, as I wanted to share an interface I designed for viewing 4D (or higher) geometry. It runs in the browser and you can try it at http://transdimensional.xyz

The each column is a slider with previews of how it will look when the slider is rotated

sumnulu · 7 years ago
(tip) keyboard short cuts: qwerty asdfgh

u/sumnulu

KarmaCake day375August 31, 2013View Original