text
stringlengths
0
2.35k
[674.98 --> 675.30] Yeah.
[675.68 --> 676.86] Well, just $1,001.
[677.50 --> 678.66] Would be worse, wouldn't it?
[678.90 --> 679.20] It would.
[679.58 --> 681.58] What would you do, Johnny, if you saw that?
[682.00 --> 683.14] I'd call you and say, hey.
[683.14 --> 685.20] You got a grand.
[685.48 --> 685.96] I hear you.
[686.08 --> 686.66] You're loaded.
[687.28 --> 691.00] You're just wasting $1,000 here, $1,000 there on your bugs and stuff.
[691.30 --> 694.34] Honestly, when I found out about it, I wanted to just karate chop the air.
[694.80 --> 698.52] That was the kind of spooky reaction I had to it.
[698.60 --> 700.16] Just like, whew, in the air.
[700.64 --> 700.92] Angry.
[701.78 --> 703.42] But yeah, it's a good lesson though, isn't it?
[703.48 --> 706.34] Like set budgets and stuff on your things.
[706.70 --> 707.32] Do set an alarm.
[707.44 --> 707.60] Yeah.
[707.94 --> 708.16] Yeah.
[708.34 --> 709.06] Budget alarms.
[709.52 --> 709.88] Observability.
[709.88 --> 711.32] Yes, yes.
[711.38 --> 712.68] And you know a thing or two about that, yeah?
[714.68 --> 715.04] Yeah.
[715.88 --> 716.24] Okay.
[716.46 --> 718.34] Who can beat my $1,000 bill?
[718.68 --> 719.74] Not a $1,000 bill.
[719.92 --> 721.06] Oh yeah, it was a $1,000 bill.
[721.14 --> 724.06] But that makes it sound like it was one thing, doesn't it?
[724.06 --> 725.46] Like a single bill.
[725.90 --> 727.28] It had $1,000 on it.
[727.58 --> 728.40] So it's not that.
[728.54 --> 730.68] It was just paid through bank transfer.
[731.40 --> 732.66] Okay, who's got another one?
[733.14 --> 736.72] I have one that could have cost many thousands of dollars.
[737.00 --> 737.86] Oh, Johnny.
[737.86 --> 738.94] It wasn't spotted.
[739.36 --> 739.44] Okay.
[739.44 --> 745.86] So one of the things you can do with function as a service things like AWS Lambda, for example,
[746.16 --> 751.08] is that you can trigger a Lambda when you write an object to an S3 bucket.
[751.36 --> 759.42] Word of advice, do not have your Lambdas write to a bucket that they are themselves responding to.
[761.32 --> 761.88] Oh.
[761.88 --> 765.94] Because that's going to give you a very nasty bill.
[766.46 --> 766.66] Yeah.
[766.72 --> 768.96] And you will not like what you see.
[769.60 --> 772.36] So yeah, thankfully, Budget Alarms came to the rescue.
[772.94 --> 773.20] Uh-huh.
[773.52 --> 774.04] There you go.
[774.08 --> 774.80] That's the lesson there.
[774.80 --> 777.98] So what happens is an object goes in the first time.
[778.06 --> 779.10] That triggers the Lambda.
[779.30 --> 784.14] The Lambda then writes something into that same bucket, which then triggers another Lambda.
[784.40 --> 784.64] Right.
[784.72 --> 785.96] Which then writes something.
[786.32 --> 788.88] And like, how quickly does that get out of hand?
[789.74 --> 790.26] Very quickly.
[791.02 --> 791.10] Yeah.
[791.10 --> 799.30] Like, if you want to see how well Lambda scales on your own dime, you can do that.
[799.30 --> 802.92] And yeah, it'll cost you money very quickly.
[803.32 --> 803.66] Wow.
[803.90 --> 804.10] Yeah.
[804.58 --> 804.90] Yeah.
[805.02 --> 805.32] Okay.
[805.68 --> 806.18] Pretty good.
[806.52 --> 808.78] But yeah, the alerts came to the rescue.
[809.22 --> 809.56] Nice one.
[809.66 --> 809.86] Mm-hmm.
[810.20 --> 810.50] Mm-hmm.
[810.86 --> 811.42] Okay.
[811.76 --> 812.86] Anyone else got one for us?
[813.28 --> 814.78] I've got another infinite loop one.
[815.08 --> 816.60] Are we allowed to name company names?
[816.76 --> 817.22] I don't know.
[817.36 --> 818.82] Maybe it's internal and I shouldn't.
[818.94 --> 819.10] Yeah.
[819.22 --> 819.58] I don't know.
[819.58 --> 823.68] I worked for a certain company which has an orange logo that has a bit of a light flying
[823.68 --> 826.04] shining behind it, and they man in the middle of the entire internet.
[826.04 --> 832.58] Now, with that in mind, when I was working for said company and their DDoS team, we didn't
[832.58 --> 833.16] DDoS people.
[833.30 --> 834.70] We were protecting against DDoSers.
[834.80 --> 834.88] Yeah.
[835.00 --> 835.40] I've wounded.
[835.74 --> 836.04] I don't know.
[836.10 --> 836.82] The DDoS team.
[837.02 --> 839.22] I just suddenly realized, I was like, that's the opposite of what we're doing.
[839.66 --> 843.22] Now, we were trying to protect, and they have a system, right?
[843.48 --> 848.06] They've got all these 200 pops or points of presence and thousands and thousands of servers.
[848.62 --> 851.66] And every single one of these is protecting some of the traffic.
[851.84 --> 854.06] Each machine can do like 20,000 requests per second.
[854.06 --> 859.72] And yet they need to be able to actually show the value back to the customer and make the
[859.72 --> 860.82] sort of decision centrally.
[861.02 --> 864.52] So you send all the logs somewhere, and they're all being sent to one data center.
[865.34 --> 869.64] So what you end up with is like, if you're doing globally 10 million requests per second,
[869.86 --> 872.58] you get 10 million log lines per second in one place.
[872.98 --> 874.10] Ah, nice.
[874.10 --> 879.72] Certain customer on a certain point in time, industry and type to be non-disclosed,
[880.06 --> 884.50] wrote an infinite loop in their client and basically spiked 8 million requests per second
[884.50 --> 885.88] on top of our normal load.
[886.00 --> 886.40] Oh, wow.