AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

APIs and microservices: contracts, resilience and when to split

See why an API is a promise that clients depend on and which changes break it, how retries and circuit breakers keep one slow service from taking down the rest, and decide whether a team should split an application into services.

An API (application programming interface) is how one program asks another to do something: "give me order 17", "create a payment". A microservice architecture splits an application into many small services that talk to each other through APIs, each owned by a small team.

This course models three ideas with small programs you can run in your browser: the API as a contract, resilience when a service fails, and deciding whether to split. They mimic real systems; they use no real servers or network. Check your framework's documentation for exact syntax. All names, rates and times are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No prior experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 00 25 min 🔒 AiTeky Pass Start here: an API is a contract Learn that an API is a promise between two programs about what can be asked and what will come back, see why changing it breaks callers, and how versioning protects them.
  2. 01 30 min Free sample 🔒 AiTeky Pass An API is a promise Model an API as a contract that clients depend on, classify changes as safe (adding a field) or breaking (renaming or removing one), and see how versioning lets a provider change without breaking clients that cannot change at once.
  3. 02 30 min 🔒 AiTeky Pass When a service fails: retries and circuit breakers Simulate a service that sometimes fails, see how retries rescue most requests but multiply the load on a struggling service, and add a circuit breaker that stops calling a service that is down so that it can recover and the caller stays fast.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass On the job: should we split the monolith? A team of nine with one large application wants to move to microservices because releases are slow. Estimate where the release time really goes, compare four options (keep it as is, tidy the code inside it, split off two services, split into many) by speed gained, running cost and risk, choose one, and write the proposal.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in