Latest / CyberSecurity Summary / Cloud Native Applications with Jakarta EE: Build, Design, and Deploy Cloud-Native Applications and Microservices with Jakarta EE
Transcript
- 0:00Speaker 1: Welcome to the deep dive. Now you gave us a
- 0:03Speaker 1: really interesting stack of sources, this time a blueprint really
- 0:06Speaker 1: for modern enterprise tech. And our mission today is, well,
- 0:11Speaker 1: let's cut through the jargon. We want to make you
- 0:14Speaker 1: instantly well informed about cloud native application development. This isn't
- 0:18Speaker 1: about just dry definitions. It's about understanding the core ideas,
- 0:23Speaker 1: the philosophy, and the tools that really change software.
- 0:27Speaker 2: Development, fundamentally changed it.
- 0:28Speaker 1: We're talking about that shift, you know, from apps that
- 0:31Speaker 1: took months, maybe years to roll out, oh, to systems
- 0:34Speaker 1: that demand new features in well days.
- 0:38Speaker 2: And that need for speed, for constant evolution. That's the
- 0:41Speaker 2: core driver here. If you look at the sources, the
- 0:44Speaker 2: big move is crystal clear. It's leaving behind the monolithic
- 0:48Speaker 2: architecture monoliths.
- 0:51Speaker 1: We all remember that latency pain, don't we These massive
- 0:54Speaker 1: applications built as just one single giant unit, indivisible. They
- 0:58Speaker 1: were hard to scale. We know that, But what was
- 1:00Speaker 1: the real headache, the biggest pain point organizationally? Maybe?
- 1:03Speaker 2: Well, yeah, scaling was tough. If one tiny part like
- 1:08Speaker 2: search on an e commerce site got hammered with traffic, right,
- 1:11Speaker 2: you had to clone the entire huge application, massive resource waste.
- 1:15Speaker 2: But honestly, maybe worse was deployment. Developer fixes one tiny
- 1:22Speaker 2: bug deep in some module. They couldn't just deplay that fix.
- 1:26Speaker 1: Oh no, you had to test everything.
- 1:29Speaker 2: Everything, full regression testing on the whole beast. So releases
- 1:33Speaker 2: were slow, risky, took weeks sometimes to coordinate.
- 1:37Speaker 1: Okay, So micro services come in to fix that, breaking
- 1:39Speaker 1: the ab down into the smallest logical level loosely coupled services.
- 1:44Speaker 2: The key advantage is that granular control selective scaling. Search
- 1:48Speaker 2: service overloaded find just scale that not the whole thing.
- 1:51Speaker 2: The order service accounts. Yeah, they just sit there doing
- 1:54Speaker 2: their job. And there's another cool benefit. The sources highlight polyglot.
- 1:58Speaker 1: Programming, meaning using different languages.
- 2:00Speaker 2: Right, use the best tool for the specific job. Maybe
- 2:03Speaker 2: Python for I don't know, a reporting micro service because
- 2:05Speaker 2: this data libraries are great, but use Java for your
- 2:09Speaker 2: high performance transaction service. Get that flexibility.
- 2:12Speaker 1: So the tech enables breaking things up. But let's be honest,
- 2:15Speaker 1: this whole shift wouldn't have happened without the money side
- 2:18Speaker 1: changing too.
- 2:19Speaker 3: Right, That pay as you go model, Oh absolutely, that's
- 2:21Speaker 3: the economic engine that really drove cloud adoption, paying only
- 2:25Speaker 3: for what you actually use and what's really interesting is
- 2:29Speaker 3: how it lowered the barrier to just trying things out, experimentation.
- 2:34Speaker 3: How so, well, think back if you needed a powerful
- 2:37Speaker 3: server just to say, run some sample code and validy fixes. Yeah,
- 2:41Speaker 3: you had to buy the hardware first, a big capital expense.
- 2:44Speaker 3: Now you rent a virtual machine, maybe a quad core,
- 2:47Speaker 3: use it for twenty minutes, shut.
- 2:49Speaker 4: It down, and pay for twenty minutes exactly.
- 2:51Speaker 2: Just the time you use it. Completely changes the economics
- 2:54Speaker 2: of development and testing.
- 2:55Speaker 1: That ability to just grab resources when needed it must
- 2:59Speaker 1: have slash overheads. Okay, so we know why the shift happened.
- 3:03Speaker 1: Let's talk about where the cloud environment itself. The sources
- 3:07Speaker 1: use this great layer by layer metaphor for the Zauce
- 3:10Speaker 1: categories ISS PIASAUCE. It gets confusing. So where does my
- 3:14Speaker 1: responsibility end and the cloud providers begin?
- 3:17Speaker 2: Right? This hierarchy is key because it defines your cost,
- 3:20Speaker 2: your effort, and how much control you have. Let's start
- 3:23Speaker 2: at the bottom. Traditional on premise. Ok. Here you manage
- 3:26Speaker 2: everything the building, the power, the cooling, the servers, the network,
- 3:29Speaker 2: the OS, middleware, the app, the data, all of it.
- 3:33Speaker 2: Your problem.
- 3:34Speaker 1: Total control, total responsibility. So climbing one step up, ISS
- 3:38Speaker 1: infrastructure as a service.
- 3:40Speaker 2: What changes with is think is something like an aws
- 3:43Speaker 2: EC two instance, a basic virtual machine. The cloud provider
- 3:47Speaker 2: handles the fundamental infrastructure, the servers, storage, networking, the physical stuff.
- 3:52Speaker 2: But I still manage You're still responsible for the operating system,
- 3:55Speaker 2: any middleware, the runtime environment, your application and your data.
- 3:59Speaker 2: Still quite a bit look after.
- 4:00Speaker 1: Okay, so PASS platform as a service must take more
- 4:04Speaker 1: off my clate.
- 4:04Speaker 2: Then it does significantly more with pass. The cloud provider
- 4:08Speaker 2: manages the OS, the middleware, and the runtime environments. Ah So,
- 4:13Speaker 2: as the user, you really only need to focus on
- 4:15Speaker 2: your application code and its associated data. I think Amazon
- 4:19Speaker 2: Elastic Beanstock. You just upload your.
- 4:21Speaker 1: Code and the platform handles the rest, provisioning, scaling pretty much.
- 4:26Speaker 2: Yeah. It abstracts away a lot of the operational burden.
- 4:28Speaker 1: And then sas software is as a service is just
- 4:31Speaker 1: the finished product, like logging into Gmail or Office three
- 4:34Speaker 1: sixty five.
- 4:35Speaker 2: Exactly, you're purely a consumer, log in, use the software.
- 4:38Speaker 2: The provider handles everything else.
- 4:39Speaker 1: But the cloud didn't stop there, did it. There's face
- 4:42Speaker 1: functions as a service.
- 4:43Speaker 2: Right, face like AWS LANDA or Azure functions. This is
- 4:47Speaker 2: like the ultimate level of abstraction. The smallest unit.
- 4:50Speaker 1: Your smallest unit.
- 4:51Speaker 2: Yeah, you only manage the function itself, the actual snippet
- 4:53Speaker 2: of code. The cloud handles everything else, provisioning servers, scaling up,
- 4:58Speaker 2: scaling down, even scaling to zero when it's not being used,
- 5:02Speaker 2: and the billing reflects that precisely. Your charge only for
- 5:06Speaker 2: the exact time your code is running. If it runs
- 5:08Speaker 2: for say, thirty milliseconds, you pay for thirty milliseconds. That
- 5:12Speaker 2: efficiency is just game changing.
- 5:16Speaker 1: Okay, that clarifies the layers the what. But here's the
- 5:19Speaker 1: crucial part. The mindset shift. Just lifting and shifting your
- 5:23Speaker 1: old monolith onto an IASVM. That doesn't really unlock the
- 5:28Speaker 1: cloud's power, does it not at all?
- 5:30Speaker 2: That's just running your old problems in a new location.
- 5:32Speaker 1: Right. The sources really stress this. Building true cloud native
- 5:36Speaker 1: apps means unlearning old habits. You have to design for well.
- 5:40Speaker 4: Volatility absolutely.
- 5:41Speaker 2: Cloud native design assumes failure is normal. The old monolith
- 5:45Speaker 2: mindset was, you know, the server's precious, keep it running
- 5:47Speaker 2: at all costs. In the cloud, servers are cattle nut pets.
- 5:50Speaker 2: They're disposable. Components will fail.
- 5:52Speaker 1: Which brings us right to design factor one, embrace failure. Specifically,
- 5:56Speaker 1: no single point of failure.
- 5:58Speaker 2: Correct, and the cornerstone of building resilient systems like this
- 6:01Speaker 2: is statelessness.
- 6:02Speaker 1: Okay, statelessness? What does that mean in practice? Give us
- 6:05Speaker 1: an analogy.
- 6:06Speaker 2: Okay, think about ordering food. Right, a stateful restaurant, only
- 6:10Speaker 2: the waiter who took your order knows what you ordered
- 6:13Speaker 2: or where you are in your meal. If that specific
- 6:15Speaker 2: waiter goes home, you're stuck. Your state is lost with them, right, I.
- 6:19Speaker 1: Can see that annoying.
- 6:21Speaker 2: Very Now a stateless restaurant, your order is written down,
- 6:25Speaker 2: maybe put into a central system. Any available waiter, any
- 6:29Speaker 2: server instance can look up your order details and continues
- 6:32Speaker 2: serving you seamlessly.
- 6:34Speaker 1: Ah, The system knows, not the individual server exactly.
- 6:38Speaker 2: The service itself doesn't hold onto session memory between requests
- 6:41Speaker 2: the state. The data is stored elsewhere, maybe a database
- 6:45Speaker 2: or cash accessible to all instances. That's what lets you
- 6:48Speaker 2: easily add a remove server's horizontal scaling. You can have
- 6:50Speaker 2: one hundred identical interchangeable servers.
- 6:52Speaker 1: That makes total sense. Okay, So failure is inevitable. The
- 6:55Speaker 1: system needs to not just survive it, but handle it gracefully.
- 6:59Speaker 2: Yeah, yes, fail fast, that's crucial, often done using the
- 7:03Speaker 2: circuit breaker pattern.
- 7:04Speaker 1: Circuit breaker like in my house sort of.
- 7:07Speaker 2: You don't want a struggling service to just hang silent
- 7:10Speaker 2: feeling for minutes, causing backups everywhere else. If a downstream
- 7:14Speaker 2: service is clearly having trouble, got it off exactly, the
- 7:17Speaker 2: circuit breaker trips. It stops sending requests that failing service
- 7:20Speaker 2: for a short period, preventing overload and giving it a
- 7:23Speaker 2: chance to recover or be replaced. Then importantly, the calling
- 7:28Speaker 2: service needs to handle that failure gracefully, meaning don't just
- 7:32Speaker 2: show an error page. If live searches down, maybe pull
- 7:35Speaker 2: results from a cash or show top selling products, something useful,
- 7:39Speaker 2: not just a dead end.
- 7:40Speaker 1: Okay, resilience is built on statelessness and failing fast. But
- 7:45Speaker 1: if we have potentially hundreds of these small services, managing
- 7:48Speaker 1: that manually sounds impossible, which leads to design factor two.
- 7:53Speaker 4: Automation is king absolutely non negotiable.
- 7:56Speaker 2: With potentially hundreds of micro services, manual management is a
- 7:58Speaker 2: recipe for disaster. You must automate testing, deployment, that's your
- 8:02Speaker 2: CICD pipeline.
- 8:04Speaker 1: And monitoring to eliminate human error, that and just.
- 8:07Speaker 2: To cope with the scale. This automation is also key
- 8:10Speaker 2: to building a self healing system self healing like Wolverine. Huh, Well,
- 8:15Speaker 2: maybe not quite that fast, but the system needs to
- 8:18Speaker 2: automatically detect and recover from failures without needing a human
- 8:23Speaker 2: to step in. That could mean Kubernetes automatically restarting a
- 8:27Speaker 2: failed container instance.
- 8:28Speaker 1: Or redirecting traffic.
- 8:29Speaker 2: Or spinning up more instances at the load increases the
- 8:33Speaker 2: system manages itself.
- 8:35Speaker 1: Ideally, and for developers actually building these things. The sources
- 8:38Speaker 1: kept mentioning the twelve factor app philosophy is that like
- 8:40Speaker 1: a checklist, it's more.
- 8:41Speaker 2: Set of principles. Yeah. A widely accepted guide for building robust,
- 8:45Speaker 2: scalable services for the cloud. It covers things like how
- 8:49Speaker 2: to handle configuration, logs, dependencies.
- 8:52Speaker 1: What's a key benefit of following those rules?
- 8:54Speaker 2: Standardization and predictability. Take configuration for example, Factor three says
- 8:59Speaker 2: stork and figure in the environment, not in the code.
- 9:01Speaker 1: Why is that so important?
- 9:03Speaker 2: Because then the exact same compiled code artifact can be
- 9:05Speaker 2: deployed unchanged across development, test, staging, production. You just change
- 9:10Speaker 2: the environment variables for database connections, apikeys, et cetera. It
- 9:14Speaker 2: makes deployments much faster and safer, eliminates a huge source
- 9:17Speaker 2: of errors.
- 9:18Speaker 1: Got it? Okay, so we have the design mindset, embrace failure,
- 9:22Speaker 1: automate everything. Now let's connect that to the toolkit. What
- 9:26Speaker 1: technologies actually make this happen? How do we deploy and
- 9:29Speaker 1: run these things?
- 9:30Speaker 2: Right? The implementation, It really starts with containers. We mentioned
- 9:34Speaker 2: VM's being heavy.
- 9:35Speaker 1: Because they include a full OS.
- 9:37Speaker 2: Right, containers are way lighter. They allow for much greater density.
- 9:41Speaker 1: Remind us why they're lighter again, what's the core difference?
- 9:44Speaker 2: They share the host operating system's kernel, so instead of
- 9:47Speaker 2: each app needing its own complete OS like a VM does.
- 9:50Speaker 1: Like separate cars with engines, Yeah.
- 9:52Speaker 2: Containers are more like everyone sharing the car's engine, the
- 9:55Speaker 2: host to S kernel, but each having their own secure
- 9:58Speaker 2: passenger cabin built around. You're just packaging the application and
- 10:02Speaker 2: its dependencies, not the whole OS stack.
- 10:04Speaker 1: So you can pack way more onto the same hardware,
- 10:07Speaker 1: more efficient, faster.
- 10:08Speaker 2: To start up, exactly, huge boost and agility. But then
- 10:11Speaker 2: if you've got tens, maybe hundreds or thousands of these containers,
- 10:17Speaker 2: you need management, air traffic control.
- 10:20Speaker 1: Basically, and that's Kubernetes.
- 10:22Speaker 2: That's Kubernetes, or k eights as it's often called It's
- 10:25Speaker 2: become the de facto standard for container orchestration orchestration, meaning
- 10:29Speaker 2: it automates the deployment, scaling, load balancing, and crucially, the
- 10:33Speaker 2: healing of containerized applications across a cluster of machines. If
- 10:37Speaker 2: a container running your service crashes.
- 10:40Speaker 1: Kates, notices and starts a new one.
- 10:42Speaker 2: Yep, automatically, it handles that complexity so developers can focus
- 10:45Speaker 2: on code, not infrastructure babysitting.
- 10:48Speaker 1: Okay, containers managed by KAS We mentioned speed earlier that
- 10:51Speaker 1: comes from continuous integration and continuous delivery CICD Right.
- 10:55Speaker 2: CICD pipelines ensure that your code is constantly being built,
- 10:59Speaker 2: tested and made ready for deployment. This enables those frequent, small,
- 11:03Speaker 2: low risk releases we talked about instead of massive, scary
- 11:06Speaker 2: deployments once a quarter.
- 11:07Speaker 1: You deploy small changes, maybe multiple times a day.
- 11:10Speaker 2: That's the goal. But how do you make sure the
- 11:13Speaker 2: underlying infrastructure, the Kubernetes cluster itself, the networking, the databases
- 11:18Speaker 2: is set up correctly and consistently every single time?
- 11:21Speaker 1: Good question. Manual setup seems error prone.
- 11:24Speaker 2: Highly error prone. That's where infrastructure as code or IAC
- 11:29Speaker 2: is absolutely viable.
- 11:30Speaker 1: Infrastructure as code yeah.
- 11:32Speaker 2: Instead of clicking around in a cloud provider's web console
- 11:35Speaker 2: to set things up, which is slow and impossible to
- 11:37Speaker 2: replicate perfectly, you write.
- 11:39Speaker 1: Scripts scripts that define the infrastructure.
- 11:41Speaker 2: Exactly, using tools like AWS cloud Formation as your ARM
- 11:46Speaker 2: templates or Terraform. These scripts define your servers, networks, load balancers, everything.
- 11:52Speaker 2: You check this code in diversion control just like your
- 11:54Speaker 2: application code.
- 11:55Speaker 1: Ah. So it's repeatable, auditable, and testable.
- 11:58Speaker 2: You can spin up an entire identical environment for development, testing,
- 12:02Speaker 2: or production just by running the script. It eliminates configuration
- 12:05Speaker 2: drift and the classic well it worked on my machine problem?
- 12:09Speaker 1: Okay, that consistency is key. Now we have hundreds of
- 12:12Speaker 1: services automated deployment. How do we avoid the pay as
- 12:16Speaker 1: you go model becoming pay way too much? How do
- 12:19Speaker 1: we manage costs and spot problems?
- 12:21Speaker 2: That comes down to proactive monitoring and alerting. It's not optional,
- 12:24Speaker 2: it's essential.
- 12:25Speaker 1: Not just for finding bugs.
- 12:27Speaker 2: No, it's critical for cost management too. You need visibility
- 12:30Speaker 2: into how all these services are behaving. Our resources being underutilized,
- 12:34Speaker 2: that's wasted money. Are they being overutilized that risks, performance
- 12:39Speaker 2: issues are failures.
- 12:40Speaker 1: So you need centralized logging and metrics absolutely.
- 12:43Speaker 2: Tools like AWS, cloud Watch or open source stacks like
- 12:47Speaker 2: the ELK stack, Elastic Search, log Stash, Cubana are common.
- 12:52Speaker 2: They gather logs and metrics from all your micro services
- 12:55Speaker 2: into one.
- 12:55Speaker 4: Place so you can see the whole picture and set up.
- 12:57Speaker 2: Alerts for anomalies, errors, high latency, unused resource consumption so
- 13:01Speaker 2: you can react before it impacts users or your bill.
- 13:03Speaker 1: Makes sense. One last piece security Moving from one big
- 13:07Speaker 1: monolith to hundreds of distributed services must change the security
- 13:11Speaker 1: game completely.
- 13:12Speaker 2: It absolutely does. You can't just put a big firewall
- 13:14Speaker 2: or on the monolith anymore. Cloud data security relies heavily
- 13:17Speaker 2: on two things. Fine grained access control and network segmentation.
- 13:21Speaker 1: Okay, break those down.
- 13:22Speaker 2: Role based access control or RBAC IM and AWS is
- 13:26Speaker 2: about who can do what principle of least privilege. Users
- 13:31Speaker 2: or even services themselves only get the absolute minimum permissions
- 13:35Speaker 2: they need to function. No more generic admin keys floating around.
- 13:39Speaker 1: And network segmentation that's about.
- 13:41Speaker 2: Controlling what can talk to what You use virtual networks, subnets,
- 13:45Speaker 2: security groups essentially internal firewalls to isolate services. The Bayman
- 13:50Speaker 2: service should only be allowed to talk to the specific
- 13:52Speaker 2: database that needs and maybe the order service, it shouldn't
- 13:55Speaker 2: be able to reach the user profile service, for.
- 13:56Speaker 1: Example, inintaining the blast radius. If something gets compromised.
- 14:00Speaker 2: Exactly zero, trust principles become much more important.
- 14:03Speaker 1: Wow. Okay, so looking back, it's quite a journey. We
- 14:06Speaker 1: went from the monolithic bottleneck to these nimble micro services.
- 14:10Speaker 1: We navigated the ZIAS models, the pay as you go economics,
- 14:14Speaker 1: and critically adopted this design mindset focused on resilience, statelessness, automation,
- 14:20Speaker 1: assuming failure.
- 14:22Speaker 2: And I think the biggest takeaway really, the thing that
- 14:24Speaker 2: should guide anyone starting this journey or refining it, is
- 14:28Speaker 2: that proactive planning right at the design phase. That's what
- 14:32Speaker 2: saves you those thousands of dollars and man hours down
- 14:35Speaker 2: the line.
- 14:36Speaker 1: You can't just tack this stuff on later.
- 14:38Speaker 2: No, you really can't. Trying to retrofit cloud native ideas
- 14:41Speaker 2: onto an old monolithic design, it's usually painful and often fails.
- 14:47Speaker 2: You have to build it in from day.
- 14:48Speaker 1: One, right, which brings us nicely to our final thought
- 14:51Speaker 1: for you, the listener to ponder, We talked a lot
- 14:53Speaker 1: about designing for failure, and the sources mentioned this powerful concept,
- 14:57Speaker 1: the bulkhead pattern.
- 14:59Speaker 4: Ah Yes, ship analogy exactly.
- 15:01Speaker 1: A bulkhead is that watertight wall inside a ship's hull.
- 15:05Speaker 1: If there's a leak or a fire in one compartment.
- 15:07Speaker 2: The bulkhead contains it. It stops the disaster from spreading
- 15:10Speaker 2: and sinking the whole ship. The rest of the vessel
- 15:13Speaker 2: stays operational.
- 15:14Speaker 1: So the question for you is where in your business,
- 15:18Speaker 1: in your systems, in your organization can you deliberately apply
- 15:21Speaker 1: that bulkhead pattern.
- 15:22Speaker 2: If one part fails, a key service, a critical process,
- 15:27Speaker 2: maybe even a team. Have you built the walls, Have
- 15:30Speaker 2: you designed the isolation points, the statelessness, the network segmentation,
- 15:34Speaker 2: the circuit breakers, the automation to ensure that failure is contained.
- 15:38Speaker 1: So that the core mission, the essential operations, can continue
- 15:42Speaker 1: moving forward even when something inevitably breaks.
- 15:45Speaker 2: That's the challenge thinking about resilience, not just in code,
- 15:48Speaker 2: but across the whole system.
- 15:49Speaker 1: Definitely something to mull over as you apply these cloud
- 15:51Speaker 1: native concepts. Thank you for joining us for this deep dive.