YouTube2Text

Module 1: The Illusion of 'It Works' — Transcript

by Michael Lugassy · 4,306 words · 766 segments · language iw · Watch on YouTube

Full transcript

  1. 0:03[music]
  2. 0:04>> You built something, it's deployed,
  3. 0:07users can reach it.
  4. 0:09You're already ahead of most people who
  5. 0:11talk about building software because you
  6. 0:13actually shipped. That's real. I'm not
  7. 0:15going to take that away from you.
  8. 0:18But here's the sentence that changes
  9. 0:19everything. Your code running is a
  10. 0:21necessary condition for production
  11. 0:23software. It is nowhere close to a
  12. 0:25sufficient one. Production means your
  13. 0:28app is serving real humans who didn't
  14. 0:30build it, don't understand it, and will
  15. 0:32use it in ways that would make you
  16. 0:34question their sanity.
  17. 0:36Production means you're holding real
  18. 0:38data you're legally obligated to
  19. 0:40protect.
  20. 0:41Production means your infrastructure
  21. 0:42costs money every single second, whether
  22. 0:45anyone is using it or not.
  23. 0:47And production means your endpoints are
  24. 0:49exposed to an open internet full of
  25. 0:51bots, scanners, and opportunistic
  26. 0:53attackers who found your URL about 12
  27. 0:56minutes after you deployed it.
  28. 0:59A demo needs to do one thing.
  29. 1:01Show features. A production system needs
  30. 1:03to do six things simultaneously. First,
  31. 1:05availability. It's up when users need
  32. 1:07it. Second, reliability. It does what
  33. 1:10it's supposed to do every time. Third,
  34. 1:12durability. Data doesn't vanish. Fourth,
  35. 1:15security. Unauthorized access is
  36. 1:17blocked. Fifth, performance. Responses
  37. 1:20come back fast enough that users don't
  38. 1:22leave.
  39. 1:23And sixth, economy. It doesn't cost more
  40. 1:26to run than the value it creates.
  41. 1:28Your vibe coded app probably nails zero
  42. 1:31of those six. Not because you're bad at
  43. 1:33this, but because nobody told you these
  44. 1:35were the requirements.
  45. 1:37The AI that helped you write the code
  46. 1:39has no concept of any of them.
  47. 1:41Here's your litmus test, and I want you
  48. 1:43to answer this honestly right now.
  49. 1:46If your app went down this second, who
  50. 1:48would notice?
  51. 1:49If the answer is nobody except you, you
  52. 1:51don't have a production system. You have
  53. 1:54a hobby project deployed to a URL.
  54. 1:56That's the gap this entire course exists
  55. 1:58to close.
  56. 2:01A taps a button in your app. What
  57. 2:03happens next involves roughly a dozen
  58. 2:05systems, protocols, and network hops.
  59. 2:09Your code is a tiny sliver somewhere in
  60. 2:11the middle. Let me walk you through the
  61. 2:13chain.
  62. 2:14The browser starts with DNS resolution,
  63. 2:17turning the human-readable domain name
  64. 2:18into an IP address, a numeric address
  65. 2:21that computers actually understand. Then
  66. 2:24a TCP handshake, a three-step process
  67. 2:27that establishes a reliable connection
  68. 2:29between the browser and the server. Then
  69. 2:31TLS negotiation where the browser and
  70. 2:33server agree on encryption so nobody can
  71. 2:36eavesdrop on the conversation. Only then
  72. 2:38does the actual HTTP request get
  73. 2:40constructed and sent. That request
  74. 2:43travels through the open internet, hits
  75. 2:45a load balancer or reverse proxy, a
  76. 2:48traffic cop that decides which server
  77. 2:49handles this request,
  78. 2:51gets routed to your actual application
  79. 2:53code, which probably makes a database
  80. 2:55query itself a separate network call
  81. 2:58with its own connection lifecycle,
  82. 3:00assembles a response and sends it all
  83. 3:02the way back through every layer it came
  84. 3:04through. Count the hops, DNS, TCP, TLS,
  85. 3:08HTTP construction, internet routing,
  86. 3:10load balancer, application routing, your
  87. 3:13code, database connection, database
  88. 3:15query, response assembly, return trip.
  89. 3:18That's 12 distinct points where
  90. 3:20something can fail, add latency, or
  91. 3:22misconfigure. Your code is one of 12.
  92. 3:25And here's what matters. When your app
  93. 3:26breaks in production, the bug is more
  94. 3:28often in layers you didn't know existed
  95. 3:31than in the code you wrote.
  96. 3:33DNS misconfiguration,
  97. 3:35an expired TLS certificate,
  98. 3:37a load balancer sending traffic to a
  99. 3:39dead server,
  100. 3:41database connection pool exhaustion.
  101. 3:43These are the production failures that
  102. 3:45blindside you because you've never seen
  103. 3:47the full chain.
  104. 3:48We'll go deep on networking in module
  105. 3:5014. For now, the operating principle is
  106. 3:53simple. You cannot debug what you cannot
  107. 3:56see. And right now, you can't see 11 of
  108. 3:59the 12 things between your user and your
  109. 4:01code.
  110. 4:03If the last chapter showed you what
  111. 4:05happens during a single request, this
  112. 4:07one zooms out, way out, because there's
  113. 4:10a massive amount of work that has to be
  114. 4:12true before that request arrives, while
  115. 4:14it's being processed, and after it
  116. 4:16completes.
  117. 4:18Picture an iceberg.
  118. 4:20Above the water line,
  119. 4:22your features, your UI, the visible
  120. 4:24functionality, that 's what you've been
  121. 4:25building.
  122. 4:26Below the water line, invisible from
  123. 4:28your code editor, monitoring and
  124. 4:30alerting, is your app even up right now?
  125. 4:33Logging, what happened when that user
  126. 4:34reported a bug last Tuesday?
  127. 4:37Backups, can you restore your database
  128. 4:39if a bad migration destroys it?
  129. 4:41Security patching, are your dependencies
  130. 4:43vulnerable?
  131. 4:45Error handling, what happens when that
  132. 4:47third-party API you depend on goes down?
  133. 4:50Scaling, can your app handle 100
  134. 4:52concurrent users or does it fall over at
  135. 4:5530?
  136. 4:56Cost management,
  137. 4:57do you know what your monthly
  138. 4:58infrastructure bill is?
  139. 5:01And incident response, what do you do
  140. 5:03when it breaks at 3:00 a.m.?
  141. 5:05Every single item below that water line
  142. 5:07is work someone has to do.
  143. 5:09In a solo project, that someone is you.
  144. 5:12The AI that helped you write your
  145. 5:14feature code has no opinion about your
  146. 5:16backup strategy.
  147. 5:18It doesn't know if your TLS certificate
  148. 5:20expires next Tuesday. It can't tell you
  149. 5:22that your logging configuration is
  150. 5:24sending gigabytes per hour to an
  151. 5:26expensive aggregation service. Here's a
  152. 5:29number that should hit you.
  153. 5:31Immature engineering teams, new feature
  154. 5:33development accounts for roughly 20 to
  155. 5:3540% of total engineering effort over a
  156. 5:38project's lifetime.
  157. 5:40The other 60 to 80% goes to maintenance,
  158. 5:43operational work, infrastructure,
  159. 5:46testing, security, and performance
  160. 5:48tuning.
  161. 5:49That's from decades of IEEE software
  162. 5:51engineering studies. Vibe coders spend
  163. 5:53close to 100% on features and 0% on
  164. 5:57everything else. That inversion is a
  165. 5:58ticking clock.
  166. 6:00The longer you ignore the iceberg, the
  167. 6:02bigger it grows, and eventually it you.
  168. 6:07Your local machine is the most
  169. 6:08comfortable liar you'll ever work with.
  170. 6:10Everything works there, everything is
  171. 6:12fast there, and almost none of it
  172. 6:14reflects what happens in production.
  173. 6:17Let me be specific about the lies. Your
  174. 6:19laptop has one user,
  175. 6:21you.
  176. 6:22Production has hundreds or thousands of
  177. 6:24concurrent users and their requests
  178. 6:26compete for the same memory, the same
  179. 6:28CPU, the same database connections. Your
  180. 6:31local database has maybe 47 test rows.
  181. 6:34Production has 4.7 million rows and that
  182. 6:37query that ran in 2 milliseconds locally
  183. 6:40now takes 14 seconds because it's doing
  184. 6:42a full table scan instead of using an
  185. 6:44index.
  186. 6:45Your local network calls to the database
  187. 6:47take microseconds because they don't
  188. 6:49cross an actual network. Production
  189. 6:51calls cross availability zones and add
  190. 6:54milliseconds of latency that compound
  191. 6:56with every query in a request.
  192. 6:59Your local environment has no attackers.
  193. 7:02Production has bots probing every
  194. 7:04endpoint within minutes of deployment.
  195. 7:07You're the only user, so you never
  196. 7:09encounter race conditions where two
  197. 7:10requests hit the same resource at the
  198. 7:12same time and create conflicts your code
  199. 7:15never handles. Double charges, lost
  200. 7:18updates, corrupted state.
  201. 7:21These bugs literally cannot appear on
  202. 7:22your machine because you are one human
  203. 7:24with one browser.
  204. 7:26Then there are the environmental deltas,
  205. 7:29different operating systems between
  206. 7:30development and production, different
  207. 7:32file system behaviors. macOS isn't case
  208. 7:35sensitive by default, Linux is, and that
  209. 7:38file name mismatch will crash your app.
  210. 7:41Different time zone settings, different
  211. 7:43versions of language runtimes. Every
  212. 7:45single delta between your laptop and
  213. 7:48production is a bug that is patiently
  214. 7:50waiting to surprise you on a Friday at
  215. 7:515:00 p.m. I tested it locally is not a
  216. 7:55meaningful statement about production
  217. 7:57readiness.
  218. 7:58Full stop. We'll cover the solutions in
  219. 8:00modules 20 and 22 when we talk about
  220. 8:03containers and CI/CD pipelines. For now,
  221. 8:06the rule is treat every difference
  222. 8:09between your machine and production as a
  223. 8:10loaded gun pointed at your weekend.
  224. 8:14So your laptop lies.
  225. 8:16What do you do about it?
  226. 8:17You stop going directly from your
  227. 8:19machine to live users. You build a
  228. 8:21ladder. Three canonical environments.
  229. 8:23Development is your local machine, the
  230. 8:25wild west where you experiment, break
  231. 8:28things, iterate fast.
  232. 8:30Staging is a production-like environment
  233. 8:32with production-like data, anonymized,
  234. 8:34not real user data, production-like
  235. 8:37infrastructure, and production-like
  236. 8:38configuration.
  237. 8:40It's the dress rehearsal.
  238. 8:41Production is the real thing. Real
  239. 8:44users, real data, real money, real
  240. 8:46consequences.
  241. 8:48The concept that makes staging useful is
  242. 8:50environment parity. Staging should look
  243. 8:53and behave as close to production as
  244. 8:54possible. Every difference between them
  245. 8:57is a category of bug that staging won't
  246. 8:59catch. Common parity failures. Using
  247. 9:02SQLite in development, but PostgreSQL
  248. 9:04SQL in production. They handle queries
  249. 9:07differently. Running on macOS locally,
  250. 9:09but Linux in production. Missing
  251. 9:11environment variables. Using a sandbox
  252. 9:13API endpoint in staging, but the live
  253. 9:16endpoint in production.
  254. 9:18Each gap is a blind spot. Code flows one
  255. 9:20direction, forward through the pipeline,
  256. 9:22dev to staging to production, never
  257. 9:25backward. That discipline prevents the
  258. 9:27chaos of ad hoc production changes,
  259. 9:30which is the number one source of
  260. 9:31outages caused by humans. Now the honest
  261. 9:34cost question. Three environments are
  262. 9:36more expensive than one. If you're a
  263. 9:38solo developer, staging doesn't need to
  264. 9:41be the same size as production, but it
  265. 9:43needs to be the same shape. Same
  266. 9:45database engine, same operating system,
  267. 9:48same runtime version, same configuration
  268. 9:50structure. Modern preview environments,
  269. 9:53we'll cover them in module 22, give you
  270. 9:55disposable staging environments per pull
  271. 9:57request, which is close to the ideal.
  272. 10:00The default, always have at least two
  273. 10:02environments. Your machine and
  274. 10:04production is not enough.
  275. 10:06Add a staging environment. It will catch
  276. 10:09bugs that would otherwise reach your
  277. 10:10user.
  278. 10:13Production failures fall into distinct
  279. 10:15categories and recognizing them is half
  280. 10:17the battle.
  281. 10:19Let's start with two that hit Vibe
  282. 10:20Coders first.
  283. 10:22Performance failures are the most common
  284. 10:24surprise.
  285. 10:26Your app works fine with low traffic but
  286. 10:28collapses under real load. An unindexed
  287. 10:31database query that's fine with 100 rows
  288. 10:33becomes a full table scan with 100,000
  289. 10:36rows. A synchronous API call to a
  290. 10:39third-party service adds two seconds to
  291. 10:41every request when that service is slow
  292. 10:44and suddenly your entire app feels
  293. 10:46broken even though your code is fine.
  294. 10:49A memory leak that's invisible during a
  295. 10:5110-minute test session crashes the
  296. 10:52server after 12 hours of continuous
  297. 10:55operation. Performance failures are
  298. 10:57sneaky because they're time bombs. They
  299. 10:59work until they don't.
  300. 11:01How to recognize you're at risk. You've
  301. 11:03never tested with more data than you
  302. 11:05personally created. You've never load
  303. 11:07tested with more than one concurrent
  304. 11:09user. You make synchronous calls to
  305. 11:11external services with no timeout
  306. 11:13configured.
  307. 11:14Data failures
  308. 11:16are the ones that make you sick to your
  309. 11:18stomach. Your app corrupts, loses, or
  310. 11:21exposes data it shouldn't.
  311. 11:23No backup strategy means a single bad
  312. 11:25database migration destroys user data
  313. 11:27permanently and there's no undo button.
  314. 11:31Missing database constraints allow
  315. 11:33invalid states. A user with a negative
  316. 11:35account balance, an order with no
  317. 11:37associated customer, a payment recorded
  318. 11:40twice.
  319. 11:41Race conditions cause double charges
  320. 11:43when two requests process the same
  321. 11:45transaction simultaneously. How to
  322. 11:48recognize you're at risk. You've never
  323. 11:50tested your backup restoration process
  324. 11:52or you don't have backups at all. Your
  325. 11:54database has no constraints beyond what
  326. 11:56the ORM gives you by default.
  327. 11:59You've never thought about what happens
  328. 12:00when two users modify the same record at
  329. 12:02the same time.
  330. 12:03The fix is not complicated. Indexes,
  331. 12:06timeouts, constraints, backups.
  332. 12:09None of this is advanced engineering.
  333. 12:11It's awareness that these failure modes
  334. 12:13exist.
  335. 12:15Two more failure categories. These are
  336. 12:18the ones that cost you money or land you
  337. 12:20in legal trouble.
  338. 12:21Security failures are terrifying because
  339. 12:24your app is functionally correct but
  340. 12:26trivially exploitable.
  341. 12:28Exposed API keys in client-side
  342. 12:30JavaScript visible to anyone who opens
  343. 12:32browser dev tools. ES-QL injection
  344. 12:36through an unvalidated form field where
  345. 12:38an attacker types a database command
  346. 12:40into your search box and your app
  347. 12:42executes it.
  348. 12:43And the one I see constantly in
  349. 12:44Vibecoded apps, broken authorization
  350. 12:47where a user can access another user's
  351. 12:48data by changing an ID in the URL.
  352. 12:51That last one has a name, IDOR, insecure
  353. 12:54direct object reference. It's one of the
  354. 12:56most common vulnerabilities on the web.
  355. 12:59OWASP ranks broken access control as one
  356. 13:01of the top 10 most critical web security
  357. 13:03risks.
  358. 13:05The mechanism is stupidly simple. Your
  359. 13:07API endpoint takes a user ID parameter
  360. 13:10like API users 1 2 3 4 and your server
  361. 13:13returns that user's data without ever
  362. 13:15checking if the person making the
  363. 13:16request is actually user 1 2 3 4.
  364. 13:20Change the number to 1 2 3 5, get
  365. 13:23someone else's data. A security
  366. 13:25researcher found exactly this pattern in
  367. 13:27a telecom company's system in 2022
  368. 13:30exposing the records of 226 million
  369. 13:32customers. One missing where clause.
  370. 13:35Cost failures are the silent killer.
  371. 13:38Your app works but it bleeds money.
  372. 13:41Autoscaling configurations with no upper
  373. 13:43bound are a classic. A startup recently
  374. 13:45shared a story where a DDoS attack
  375. 13:48triggered unchecked autoscaling that
  376. 13:51spun up 2,000 instances generating a
  377. 13:54$120,000
  378. 13:56bill in 72 hours.
  379. 13:58Lambda functions that trigger themselves
  380. 14:00in a loop can execute millions of times
  381. 14:02before anyone notices. Logging
  382. 14:04configurations that send gigabytes per
  383. 14:06hour to an expensive aggregation
  384. 14:08service. Unoptimized image storage
  385. 14:10driving up bandwidth costs. Here's is
  386. 14:13thing nobody tells Vibecoders. Cloud
  387. 14:15providers are happy to let you spend.
  388. 14:17There are no default safety rails. You
  389. 14:20set the budget alerts, you set the
  390. 14:21scaling limits, you set the spending
  391. 14:23caps, or nobody does the default. Set a
  392. 14:27billing alert on day one, cap every auto
  393. 14:30scaling group, put a spending limit on
  394. 14:32every service you use. These take five
  395. 14:34minutes and can save you thousands.
  396. 14:38Theory creates understanding. Specific
  397. 14:41numbers create conviction. Consider what
  398. 14:43happens when you skip backups, not might
  399. 14:46happen, but what actually happened.
  400. 14:48Cloud providers don't always configure
  401. 14:50automatic backups by default. Some
  402. 14:52services start with zero retention. If
  403. 14:54you never checked and a bad deployment
  404. 14:56corrupts your database, your data is
  405. 14:58gone, not recoverable, not in some
  406. 15:01backup somewhere, gone. Every user
  407. 15:03record, every transaction, every piece
  408. 15:06of content. The cost of re-entering that
  409. 15:08data, assuming you even can, dwarfs
  410. 15:11whatever time it would have taken to
  411. 15:12configure daily backups on day one.
  412. 15:15Consider the cost failure I mentioned.
  413. 15:17$120,000 in 72 hours from un-capped auto
  414. 15:21scaling. That startup's entire runway
  415. 15:24shortened by months because of one
  416. 15:25missing configuration value, a maximum
  417. 15:28instance count, a number in a config
  418. 15:30file. That's it. Or consider the ID door
  419. 15:33scenario. You built an API and the AI
  420. 15:35generated clean functional code. It
  421. 15:38handles authentication perfectly. Users
  422. 15:40log in, tokens are issued,
  423. 15:42but authorization, checking whether user
  424. 15:44A can access user B's data, never got
  425. 15:47implemented because you never asked for
  426. 15:49it and the AI didn't know to add it.
  427. 15:52A researcher changes one number in a URL
  428. 15:54and suddenly has access to your entire
  429. 15:57customer database.
  430. 15:58Here's the pattern across every one of
  431. 16:00these cases. None required advanced
  432. 16:02engineering to prevent a backup
  433. 16:04configuration, a scaling limit, a where
  434. 16:07clause, five minutes of work. What was
  435. 16:10missing wasn't skill, it was awareness
  436. 16:12that the failure mode existed in the
  437. 16:14first place.
  438. 16:15That's exactly what this course is for.
  439. 16:18The rest of the modules give you that
  440. 16:20awareness, one domain at a time, so
  441. 16:22these aren't surprises anymore. They're
  442. 16:24checklist items.
  443. 16:27AI is extraordinarily good at generating
  444. 16:30code that implements specified behavior.
  445. 16:33Give it a function spec, it writes the
  446. 16:35function. Describe a component, it
  447. 16:37builds the component. Wire up an API
  448. 16:38endpoint.
  449. 16:40Done. That's real and that's powerful.
  450. 16:43But here's the boundary, and it's a hard
  451. 16:44one.
  452. 16:46AI cannot make decisions under
  453. 16:47constraints it doesn't know about. It
  454. 16:50can't weigh your budget against your
  455. 16:51reliability requirements. It can't
  456. 16:53decide whether to invest in automated
  457. 16:55testing this week or ship the feature
  458. 16:57your biggest customer is threatening to
  459. 16:59leave over.
  460. 17:00It can't assess whether the
  461. 17:01architectural shortcut it just generated
  462. 17:04will cost you 200 hours of refactoring
  463. 17:06in 6 months.
  464. 17:08It doesn't know your team size, your
  465. 17:10deployment constraints, your compliance
  466. 17:12obligations, or your risk tolerance.
  467. 17:16Engineering at its core is the
  468. 17:18discipline of making good decisions
  469. 17:19under uncertainty and constraints.
  470. 17:22That's it.
  471. 17:23Not writing code, making decisions. What
  472. 17:26do engineers actually do? They identify
  473. 17:28requirements that users don't state.
  474. 17:30Nobody asks for security, they expect
  475. 17:32it. Nobody asks for backups, they assume
  476. 17:35they exist. Engineers anticipate failure
  477. 17:37modes and design for them before they
  478. 17:39happen. They make tradeoff decisions
  479. 17:42with imperfect information and document
  480. 17:44their reasoning so the next person
  481. 17:46understands why.
  482. 17:48They design systems that can evolve so
  483. 17:50tomorrow's team can understand, modify,
  484. 17:52and extend what exists today.
  485. 17:55They manage risk, not just
  486. 17:57functionality. There's a concept I call
  487. 17:59engineering taste. It's the intuition
  488. 18:02that develops over time for what matters
  489. 18:04and what doesn't, when to invest in
  490. 18:06quality and when to ship the hack. The
  491. 18:08difference between a temporary shortcut
  492. 18:10and a permanent liability.
  493. 18:12You can't get this from an AI. You build
  494. 18:14it by understanding the consequences of
  495. 18:16choices, which is exactly what the next
  496. 18:1937 modules are about. Your operating
  497. 18:22rule.
  498. 18:23AI writes the code. You make the
  499. 18:25decisions. If you don't know enough to
  500. 18:27evaluate the code AI gives you, you're
  501. 18:30not the engineer.
  502. 18:31You're the passenger.
  503. 18:34I need to shift your mental model. And
  504. 18:36this is the shift that underpins the
  505. 18:38rest of the course. You've been thinking
  506. 18:40of software like a document. You write
  507. 18:43it, you publish it, you're done. Maybe
  508. 18:45you update it once in a while. That's
  509. 18:47wrong. A deployed application is a
  510. 18:50restaurant you opened. The food, your
  511. 18:52features matters, but so does the
  512. 18:54plumbing, the fire exits, the health
  513. 18:57inspections, the supply chain for
  514. 18:59ingredients, the staffing, the
  515. 19:01accounting, the insurance, and the drunk
  516. 19:03customer who tries to walk into the
  517. 19:05kitchen at 11:00 p.m. The restaurant
  518. 19:07doesn't just need to make good food. It
  519. 19:09needs to stay open, stay safe, stay
  520. 19:11legal, and stay solvent day after day
  521. 19:14while the world around it changes
  522. 19:16unpredictably.
  523. 19:17Software in production degrades,
  524. 19:19dependencies develop vulnerabilities,
  525. 19:22TLS certificates expire, and when they
  526. 19:24do, your entire site shows scary browser
  527. 19:26warnings and users leave.
  528. 19:29Third-party APIs change their contracts
  529. 19:31without warning. User data grows and
  530. 19:34queries slow down. Attack vectors
  531. 19:36evolve. The internet is adversarial by
  532. 19:38default. Your app will encounter inputs
  533. 19:41you never imagined, Unicode edge cases
  534. 19:43that break your string handling,
  535. 19:45payloads 10 times larger than you tested
  536. 19:47with, concurrent modifications from two
  537. 19:50users editing the same record, clock
  538. 19:52skew between servers that makes
  539. 19:54timestamps unreliable,
  540. 19:56network partitions where your app can
  541. 19:58reach the internet but not the database.
  542. 20:01The mental model shift is from builder
  543. 20:03to operator.
  544. 20:05You are not done when you deploy, you
  545. 20:07are beginning. The deployment is the
  546. 20:09opening night of your restaurant, not
  547. 20:11the last page of your manuscript.
  548. 20:14This course teaches you how to build
  549. 20:16things that survive that beginning, how
  550. 20:18to think about operations, reliability,
  551. 20:21security, and cost from the start, not
  552. 20:23as afterthoughts. How to become the
  553. 20:25engineer, not just the coder.
  554. 20:29Let me give you a concrete timeline of
  555. 20:31what happens to a Vibe coded app after
  556. 20:33deployment because this is predictable
  557. 20:35enough to put on a calendar.
  558. 20:37Week one, everything works. You're
  559. 20:39excited. Users trickle in. Week two to
  560. 20:42four, minor bugs surface. Users do
  561. 20:45things you didn't anticipate.
  562. 20:47Some data starts looking weird.
  563. 20:49You fix things manually directly in
  564. 20:51production because you have no staging
  565. 20:53environment.
  566. 20:54Month two, your dependency list has its
  567. 20:57first known vulnerability. You don't
  568. 20:59know because you have no monitoring for
  569. 21:01this. A bot finds your unprotected API
  570. 21:04endpoint and starts making requests. You
  571. 21:06don't notice because you have no
  572. 21:08logging.
  573. 21:10Month three, your database has grown
  574. 21:12from 100 rows to 10,000. Some pages load
  575. 21:15noticeably slower. Users start
  576. 21:17complaining. You don't know which
  577. 21:19queries are slow because you have no
  578. 21:21observability, which means the ability
  579. 21:24to understand what's happening inside
  580. 21:25your system from the outside.
  581. 21:28Month four,
  582. 21:29your TLS certificate expires.
  583. 21:31Your site shows a browser security
  584. 21:33warning.
  585. 21:34Traffic drops 40% overnight and you
  586. 21:36don't know why until a user emails you.
  587. 21:39Month six, a third-party API you depend
  588. 21:42on changes its response format. Your app
  589. 21:45starts throwing errors for certain
  590. 21:46features. You're now firefighting
  591. 21:48instead of building. Month eight, your
  592. 21:50cloud bill has crept from $15 month to
  593. 21:53$180 month and you're not sure why.
  594. 21:56Orphaned resources, unoptimized queries,
  595. 21:59logging storage you forgot about. None
  596. 22:01of this is hypothetical. It's the
  597. 22:03default trajectory when you deploy
  598. 22:05without the fundamentals.
  599. 22:07Every item on that timeline maps to a
  600. 22:09module in this course. Dependency
  601. 22:11management, monitoring, observability,
  602. 22:13certificate management, infrastructure
  603. 22:15cost control. You'll learn each one.
  604. 22:18The habit to adopt today, set a monthly
  605. 22:21calendar reminder to check your deployed
  606. 22:23app's health. Not use it.
  607. 22:25Check it. Are the dependencies current?
  608. 22:27Is the cert valid? What's the bill?
  609. 22:30What's in the error log?
  610. 22:32Five minutes a month saves you from the
  611. 22:34timeline I just described.
  612. 22:37absorbed a lot. me give you something
  613. 22:39you can carry out of this module and use
  614. 22:41today.
  615. 22:42Five questions to ask about anything
  616. 22:44you've deployed. Answer each one
  617. 22:46honestly.
  618. 22:47First, do you have backups? Not does my
  619. 22:50cloud provider probably back things up,
  620. 22:53but can you right now restore your
  621. 22:54database to yesterday's state? If you
  622. 22:56don't know, the answer is no. Second, do
  623. 22:59you have monitoring?
  624. 23:01If your app went down right now, how
  625. 23:03would you find out? If the answer is a
  626. 23:05user would email me, you don't have
  627. 23:07monitoring.
  628. 23:08Third, do you have any authorization
  629. 23:10checks? Can user A access user B's data
  630. 23:13by changing an ID in a URL?
  631. 23:15Go try it right now. Open two browser
  632. 23:18sessions, log in as two different users
  633. 23:20and try to access each other's
  634. 23:22resources. Fourth, do you know your
  635. 23:24monthly infrastructure cost and what's
  636. 23:26driving it? Log into your cloud
  637. 23:28provider's billing dashboard. Look at
  638. 23:30the number. If it surprises you, that's
  639. 23:32a problem.
  640. 23:33Fifth, when did you last update your
  641. 23:35dependencies?
  642. 23:37If the answer is I've never updated them
  643. 23:39or I don't know, you have a security
  644. 23:42liability growing quietly in the
  645. 23:44background.
  646. 23:45Count your no and I don't know answers.
  647. 23:47Each one maps to a module in this course
  648. 23:50that's about to become very relevant to
  649. 23:52you.
  650. 23:53This isn't a quiz to make you feel bad.
  651. 23:55It's your baseline.
  652. 23:57You'll come back to these five questions
  653. 23:59at the end of the course.
  654. 24:00And the difference in your answers will
  655. 24:02show you how far you've come.
  656. 24:05The postmortem for this module covers
  657. 24:06the 2019 Cloudflare outage where a
  658. 24:09single regex brought down a chunk of the
  659. 24:11internet for 27 minutes. And the
  660. 24:14assignment asks you to perform an honest
  661. 24:16production audit of your own deployed
  662. 24:18app.
  663. 24:19Both are worth your time.
  664. 24:22Go do them.
  665. 24:24In July 2019, an engineer at Cloudflare
  666. 24:28deployed a single regular expression to
  667. 24:30their web application firewall. Within
  668. 24:32seconds, CPU spiked to 100% on every
  669. 24:35edge server worldwide. Millions of
  670. 24:37websites went dark. Discord, Shopify,
  671. 24:40government services, financial tools,
  672. 24:42all returning errors. The regex was
  673. 24:44syntactically valid. It passed testing.
  674. 24:47It worked on small inputs, but in
  675. 24:49production, handling millions of
  676. 24:51requests per second, it triggered
  677. 24:52catastrophic backtracking and brought
  678. 24:54down a significant chunk of the internet
  679. 24:56for 27 minutes. Here is how the dominoes
  680. 24:59fell. The regex was never evaluated for
  681. 25:02computational complexity, only
  682. 25:04correctness.
  683. 25:05It deployed to 100% of global servers
  684. 25:08simultaneously. No canary, no staged
  685. 25:11rollout. When CPU spiked, the management
  686. 25:13systems used to push fixes ran on the
  687. 25:15same infrastructure, so recovery tools
  688. 25:17were crippled too.
  689. 25:19And there was no automatic rollback
  690. 25:21triggered by CPU anomaly detection. One
  691. 25:24bad pattern,
  692. 25:25four missing safeguards, global outage.
  693. 25:28Production is not about whether your
  694. 25:29code is correct. It is about whether
  695. 25:32your code is correct under all
  696. 25:33conditions, at full scale, with real
  697. 25:35inputs, and with recovery mechanisms
  698. 25:38when it is not.
  699. 25:39How do you prevent this? First, staged
  700. 25:41canary releases. Push changes to 1% of
  701. 25:44servers, watch for anomalies before
  702. 25:46going global. Second, automated resource
  703. 25:49monitoring with auto rollback on CPU or
  704. 25:52memory spikes. Third, regex complexity
  705. 25:55analysis baked into the deployment
  706. 25:56pipeline, catching dangerous patterns
  707. 25:59before they reach a server.
  708. 26:00Fourth, a kill switch that runs on
  709. 26:03independent infrastructure, so the fix
  710. 26:05does not depend on the thing that is
  711. 26:07broken. Your code is the smallest part
  712. 26:09of the system that serves your user.
  713. 26:12Production means availability,
  714. 26:13reliability, durability, security,
  715. 26:16performance, and economy
  716. 26:18all at once. Your laptop lies to you
  717. 26:20because it hides concurrency, latency,
  718. 26:22scale, and attackers.
  719. 26:24Feature development is only 20 to 30% of
  720. 26:26real engineering effort, and every item
  721. 26:29below the iceberg water line is work
  722. 26:31someone has to do.
  723. 26:32If that someone is you, this course is
  724. 26:35your map.
  725. 26:36Here is what you're going to build.
  726. 26:38Take something you have actually
  727. 26:39deployed,
  728. 26:40anything live on a URL.
  729. 26:42Open your browser, dev tools, trace a
  730. 26:45request, and document every network call
  731. 26:47you see.
  732. 26:48Then run the iceberg audit. Do you have
  733. 26:50backups, monitoring, logging, recent
  734. 26:53dependency updates, a staging
  735. 26:54environment, cost visibility?
  736. 26:57Answer yes, no, or I don't know. Count
  737. 27:00the unknowns. Then write one honest
  738. 27:02paragraph about what your app would
  739. 27:04actually survive. This is your baseline.
  740. 27:06You will come back to it. Before you
  741. 27:08call it done, ask yourself, do I have
  742. 27:10automated backups and can I restore to
  743. 27:12yesterday?
  744. 27:13Would I know if the app went down before
  745. 27:15a user told me?
  746. 27:17Could I investigate a bug reported last
  747. 27:19Tuesday?
  748. 27:20Have I updated dependencies in the last
  749. 27:2290 days? Do I have a staging
  750. 27:24environment? Do I know my monthly cost
  751. 27:26and what drives it?
  752. 27:28Now that you can see the gap between it
  753. 27:30runs and it works, the obvious question
  754. 27:33is how do you start thinking like
  755. 27:34someone who builds things that survive?
  756. 27:37That is exactly what module two answers.
  757. 27:41It is called Thinking in Systems and
  758. 27:43State, and it gives you the two mental
  759. 27:45models every engineer needs before
  760. 27:47touching a single tool or infrastructure
  761. 27:50decision.
  762. 27:51You will learn why every bug is secretly
  763. 27:53a state bug and why features are not the
  764. 27:55unit of software.
  765. 27:57It is where the bridge across this gap
  766. 27:59begins.

About this transcript

This page contains the full transcript of Module 1: The Illusion of 'It Works' by Michael Lugassy, generated from the public captions YouTube serves with the video. The transcript has 4,306 words across 766 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.