API Vs SDK! What's the difference?
Key Takeaways
The video explains the difference between APIs and SDKs, demonstrating how they are used in modern app development to simplify complex features and services, with a focus on REST architecture, API keys, and SDK toolboxes.
Full Transcript
modern apps are incredibly complex they need to process payments send notifications and show maps and that's just the beginning building all these features from scratch would take years that's where apis and sdks come in they are the essential tools that make a favorite apps work together seamlessly let's start with apis or application programming interfaces think of them as universal translators they let different software applications talk to each other instead of building everything from scratch developers can tap into specialized services that are already battle tested and reliable most modern API use what's called rest architecture it's a way of communicating through HTTP requests to specific URLs called endpoints the core operations are beautifully simple get fetches data from a service post creates new resources put update existing ones and delete while that removes them when we make these requests we can include specific parameters to get exactly what we need for operations I post we'll package data in the request body usually in Json format every API response comes with a status code that tells us what happened the 200s means everything went well like getting a thumbs up a 200 means okay we did it while 2011 says great we created something new the 400s are different they're telling us something went wrong on our end maybe we made a bad request or try to access something without permission and those 500 level codes that's the server raising his hands to say hey this is on us we've got a problem over here security is very important in the API World services use API keys or o off tokens to verify who's making requests think of it like a digital ID card they also keep an eye on how many requests are being made go over the limit and we might get cut off or see some extra charges on a bill let's see this in action with a food delivery app when we open it multiple apis work together behind the scenes first a map API kicks in show us all the restaurants nearby once we find a place that looks good the app's own API fetches the restaurant's manual ready to the order that's when a payment API steps in to handle our transaction after everything's confirmed a messaging API makes sure our delivery driver knows where to go now let's shift gears to sdks software development kits while apis are the raw connection points between services sdks are like pre-built toolboxes that make those connection easier to use they handle the complex technical details so we can focus on building features and SDK is a complete package it comes with tools libraries and documentation everything we need to build apps with specific platforms like Android or iOS a well-designed SDK takes all those platform complexities and simplifies them making sure our apps behaves consistently across different devices many sdks come with pre-built API clients that make integration easy these clients handle all the technical heavy lifting they manage authentication they format requests properly they turn complicated responses into Data that's easy to use in a code here's a real example Instagram's SDK instead writing hundreds of lines of code to connect with Instagram's API the SD K let us add a share to Instagram feature with minimal effort it's like they're saying don't worry about the technical details here's the simple way to do it so when should we choose between an API and SDK let's break it down direct API integration makes sense when we need complete control over our project is a good choice when we want to keep our dependencies minimal and sometimes we might be working with a platform that doesn't have an SDK that's when apis become a best friend SDK take a different approach they are fantastic when we need to move fast and get our product to Market quickly they come pack with best practices built right in saving us from common pitfalls and if we need special features for specific platforms sdks are often the way to go remember it's not always an either or Choice many successful apps use both SD cases for their main use cases and direct API access for custom features together these tools form the building blocks of mod modern software development letting us create powerful apps without Reinventing the wheel if you like our videos you might like a system design newsletter as well it covers topics and Trends in large scale system design trusted by 1 million readers subscribe that blog. bio.com
Original Description
Get a Free System Design PDF with 158 pages by subscribing to our weekly newsletter: https://bit.ly/bbg-social
Animation tools: Adobe Illustrator and After Effects.
Checkout our bestselling System Design Interview books:
Volume 1: https://amzn.to/3Ou7gkd
Volume 2: https://amzn.to/3HqGozy
The digital version of System Design Interview books: https://bit.ly/3mlDSk9
ABOUT US:
Covering topics and trends in large-scale system design, from the authors of the best-selling System Design Interview series.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from ByteByteGo · ByteByteGo · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
What happens when you type a URL into your browser?
ByteByteGo
System Design: Why is Kafka fast?
ByteByteGo
System Design: How to store passwords in the database?
ByteByteGo
Big Misconceptions about Bare Metal, Virtual Machines, and Containers
ByteByteGo
FAANG System Design Interview: Design A Location Based Service (Yelp, Google Places)
ByteByteGo
Scan To Pay in 2 Minutes
ByteByteGo
Consistent Hashing | Algorithms You Should Know #1
ByteByteGo
System Design: Why is single-threaded Redis so fast?
ByteByteGo
HTTP/1 to HTTP/2 to HTTP/3
ByteByteGo
What Is REST API? Examples And How To Use It: Crash Course System Design #3
ByteByteGo
The Secret Sauce Behind NoSQL: LSM Tree
ByteByteGo
Bloom Filters | Algorithms You Should Know #2 | Real-world Examples
ByteByteGo
Back-Of-The-Envelope Estimation / Capacity Planning
ByteByteGo
How To Choose The Right Database?
ByteByteGo
How Does Live Streaming Platform Work? (YouTube live, Twitch, TikTok Live)
ByteByteGo
Latency Numbers Programmer Should Know: Crash Course System Design #1
ByteByteGo
What Are Microservices Really All About? (And When Not To Use It)
ByteByteGo
How Does Apple/Google Pay Work?
ByteByteGo
Proxy vs Reverse Proxy (Real-world Examples)
ByteByteGo
What is API Gateway?
ByteByteGo
What Is GraphQL? REST vs. GraphQL
ByteByteGo
What Is Single Sign-on (SSO)? How It Works
ByteByteGo
What Is A CDN? How Does It Work?
ByteByteGo
What is RPC? gRPC Introduction.
ByteByteGo
SSL, TLS, HTTPS Explained
ByteByteGo
FANG Interview Question | Process vs Thread
ByteByteGo
What is OSI Model | Real World Examples
ByteByteGo
CAP Theorem Simplified
ByteByteGo
Kubernetes Explained in 6 Minutes | k8s Architecture
ByteByteGo
CI/CD In 5 Minutes | Is It Worth The Hassle: Crash Course System Design #2
ByteByteGo
Why Is System Design Interview Important?
ByteByteGo
8 Key Data Structures That Power Modern Databases
ByteByteGo
System Design Interview: A Step-By-Step Guide
ByteByteGo
Top 5 Redis Use Cases
ByteByteGo
Debugging Like A Pro
ByteByteGo
But What Is Cloud Native Really All About?
ByteByteGo
Everything You Need to Know About DNS: Crash Course System Design #4
ByteByteGo
The Most Beloved Burger for Developers
ByteByteGo
10+ Key Memory & Storage Systems: Crash Course System Design #5
ByteByteGo
Cache Systems Every Developer Should Know
ByteByteGo
Top 7 ChatGPT Developer Hacks
ByteByteGo
How ChatGPT Works Technically | ChatGPT Architecture
ByteByteGo
10 Key Data Structures We Use Every Day
ByteByteGo
Top 7 Most-Used Distributed System Patterns
ByteByteGo
Secret To Optimizing SQL Queries - Understand The SQL Execution Order
ByteByteGo
Amazon Prime Video Ditches AWS Serverless, Saves 90%
ByteByteGo
Top 6 Most Popular API Architecture Styles
ByteByteGo
Top 5 Most-Used Deployment Strategies
ByteByteGo
How Discord Stores TRILLIONS of Messages
ByteByteGo
Uncovering Stack Overflow's Shocking Architecture
ByteByteGo
OAuth 2 Explained In Simple Terms
ByteByteGo
Demystifying the Unusual Evolution of the Netflix API Architecture
ByteByteGo
1 Year Of YouTube | Best System Design Series
ByteByteGo
DevOps vs SRE vs Platform Engineering | Clear Big Misconceptions
ByteByteGo
Top 7 Ways to 10x Your API Performance
ByteByteGo
Why Google and Meta Put Billion Lines of Code In 1 Repository?
ByteByteGo
Git MERGE vs REBASE: Everything You Need to Know
ByteByteGo
Top 6 Load Balancing Algorithms Every Developer Should Know
ByteByteGo
Algorithms You Should Know Before System Design Interviews
ByteByteGo
Top 5 Most Used Architecture Patterns
ByteByteGo
More on: API Design
View skill →Related Reads
📰
📰
📰
📰
Salam is a general-purpose and systems programming language designed for efficient software development
Dev.to · John Bampton
The Performance Illusion
Medium · Programming
Write-Intensive Systems: Key Challenges in Distributed Systems
Dev.to · Mohammad Quanit
Started a Visual System Design & AI Infrastructure Channel
Dev.to · Jaswanth
🎓
Tutor Explanation
DeepCamp AI