Тёмный
No video :(

Top 5 API Performance Tips  

ByteByteGo
Подписаться 915 тыс.
Просмотров 395 тыс.
50% 1

Get our 158-page System Design PDF for free by subscribing to our weekly newsletter: bit.ly/bytebyt...
Animation tools: Adobe Illustrator and After Effects.
Checkout our bestselling System Design Interview books:
Volume 1: amzn.to/3Ou7gkd
Volume 2: amzn.to/3HqGozy
The digital version of System Design Interview books: 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.

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 91   
@AmbushEveryone
@AmbushEveryone 7 месяцев назад
I'm just learning how to build APIs and this some of the best info I've come across yet :)
@paultvshow
@paultvshow 6 месяцев назад
How is your progress and what is your background?
@AmbushEveryone
@AmbushEveryone 6 месяцев назад
@@paultvshow Progress is slow lol. No programming background. I'm just teaching myself python. I was working in CC processing, specifically helping merchants with chargebacks, and had some ideas for data analysis tools to be used in the process. I tried building them in Excel and MS Access. Not impressed with what I was able to come up with lol. So, I began learning Python to develop the tools I had in mind. When I was going through tutorials, came across a few on API development and they really peaked my interest. If I'm being completely honest, I'm have a bit of an irrational fear of putting my work on github because it's garbage lol. I know I should and that the community is really helpful. It's just that it's so public. If you have any tips on building APIs or programming in general, I'll take all the advice I can get :)
@GulfCoastGrit
@GulfCoastGrit 6 месяцев назад
@@AmbushEveryoneBest advice I can give is that tutorials as best for when you are already knowledgeable about programming and want to see how different people solve a problem. Best thing you can do to further yourself is instead of looking up a tutorial on something, think about the problem you want to solve, break that down into smaller problems, and then google or look on Stack Overflow to see how to solve that specific problem. Don’t copy pasta the code, really understand how they solved the problem and write out the code specific to your domain. Like, with building APIs maybe you have something working you like and you bring it to your team and they say, this is cool but we’re worried about security, can you validate users? Now you have to build an authorization workflow, so you lookup how to do that. You figure out that you need to send credentials and store and use tokens. Then you have to figure out joe to validate that token in each api you’re using (hint, it’s another API [insert Xibit meme here]). Then you need new tables in your database, you need to lean how to hash passwords, etc. now there’s different ways to do that where you don’t have to roll your own solution, but it will expand your knowledge and when you do reach for a readymade solution or library, you know how it works under the hood and when it can break. Hope that helps!
@nathanielreeves_dev
@nathanielreeves_dev 4 месяца назад
@@AmbushEveryoneif you ever want to go deeper, check out the Odin project. I maintain and author lessons for it, and it’s what taught me all the skills I use at my day job and web dev agency. It’s 100% free with zero cost, so I’m not tryna sell you something it’s just a great resource. If you ever stop by the discord, I’ll see you there.
@marcoi7035
@marcoi7035 4 месяца назад
💯
@prukenope
@prukenope 6 месяцев назад
honestly, this guy is master of concept for me now
@munsifalimisri
@munsifalimisri 6 месяцев назад
Pagination Asynchronous logging Caching Payload compression Connection pooling
@rishiraj2548
@rishiraj2548 2 месяца назад
Thanks
@georgepagotelis
@georgepagotelis 2 месяца назад
So a short that is less than 30s you've summarised? Lol
@ridabrahim7604
@ridabrahim7604 Месяц назад
​@@georgepagotelis bro it's 2024 a whole year must be served in 3 seconds duuuh
@hardiebotha5476
@hardiebotha5476 21 день назад
@@ridabrahim7604 Relentless refactoring and optimization - love it!
@IM4fLEX
@IM4fLEX 7 месяцев назад
Love these shorts. Keep making them good sir.
@rohaanuv
@rohaanuv 3 месяца назад
Where I get the ebook
@doxologist
@doxologist 7 месяцев назад
Love these primers. You can never be too experienced to learn something from them :)
@morgwai667
@morgwai667 6 месяцев назад
compressing is not always a good idea: in case of a fast network, compressing may take more time than it saves during the transfer. Especially in case of big number of concurrent requests that will compete for the cpu. btw of logging and connection pooling: that's out of the box in Java ;-)
@ajdinhusic2574
@ajdinhusic2574 3 месяца назад
Thats also what I was thinking.
@AlexSouthwell
@AlexSouthwell 3 месяца назад
I came here to say the same thing. But you do have options. * use a lower compression level, often it's way faster for similar gains * use a different compression scheme, you can compress things using not gzip * use parallel compression pgzip exists
@mukey
@mukey 5 дней назад
Your stuff is awesome. What tool do you use to create your charts and graphics. This is great.
@clarkflavor
@clarkflavor Месяц назад
Oooh, I'm looking forward to reading that ebook!!
@GuidoGeloso
@GuidoGeloso 2 месяца назад
Not new but good to remember
@adilsonresendedev
@adilsonresendedev 22 дня назад
Loved it!
@calderov
@calderov 7 месяцев назад
This channel is gold 🪙
@oneautumnleaf47
@oneautumnleaf47 5 месяцев назад
I'm already doing them without noticing. 😂. Nice shorts tho. Very informative
@azy22222
@azy22222 4 месяца назад
This is proper professional ta!
@gourav7315
@gourav7315 11 дней назад
Create more video like this 🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉
@LCTesla
@LCTesla 2 месяца назад
my tip: build relations with the parties whose API's you call and negotiate for them to do work on their side that you would otherwise be doing inefficiently on yours
@skateboardpete8236
@skateboardpete8236 7 месяцев назад
Love this! Can you share the software that is used for these animations? - aspiring solution architect 😊
@AshrafMMA
@AshrafMMA 6 месяцев назад
where's the link to download the free ebook?
@luckywatcher42
@luckywatcher42 6 месяцев назад
there's only two hard things in computer science/programming: naming things and cache invalidation. if you use something like redis, please use it with caution.
@felipe7112
@felipe7112 3 месяца назад
you can also use binary data format like avro instead of json
@armando.alamilla
@armando.alamilla 2 месяца назад
Hey! I love these shorts. How do you edit them?
@irnehhenri
@irnehhenri 5 месяцев назад
Asynchronous logging is alreary standard if you don't prevent the OS from handling disk write buffering
@baljka17
@baljka17 5 месяцев назад
Crazy useful !!
@monsieurnet
@monsieurnet 4 месяца назад
Connection pool is a great idea. I will try it.
@BollyVibesforewer
@BollyVibesforewer 3 месяца назад
Can you tell more about which tool are you using for this design animation? It looks preety cool though.
@DJ-bo4pz
@DJ-bo4pz 4 месяца назад
Adding a caching layer is excellent, but then I thought why not use a different cheaper disk for logging? - logging has a write only access pattern, so a disk basically just needs to ingest it.
@dlimon_
@dlimon_ 6 месяцев назад
very helpful tips!
@zbt_official
@zbt_official 5 месяцев назад
Thank you for sharing, your video is very well done
@prabhcse
@prabhcse 17 дней назад
@ByteByteGo Would you consider Circuit breakers here in top 10 ?
@algalib.mp4
@algalib.mp4 6 месяцев назад
Really good info❤
@vast634
@vast634 6 месяцев назад
Makes all sense. Adds complexity though.
@Tony-dp1rl
@Tony-dp1rl 7 месяцев назад
Agree .. .except for the bit about compressed uploads. There is no standard to compressing payloads for API uploads, and it is a DoS nightmare.
@muhangielioda
@muhangielioda 6 месяцев назад
that also challenged me ..maybe he meant videos and text files
@devoncodes
@devoncodes Месяц назад
What is the name of the font used in your redis example at :33 into your short? Thank you kindly, I know my eyes will!
@pham3383
@pham3383 3 месяца назад
Very easy to underrated Even though i am an electrical engineer
@jamesu1675
@jamesu1675 2 месяца назад
you can learn more about these concepts thru virtual memory
@Migatitolindo123
@Migatitolindo123 5 месяцев назад
Awesome 🎉
@cec408_adityachoudhari5
@cec408_adityachoudhari5 3 месяца назад
Tysm😊
@rhinelandnagel7288
@rhinelandnagel7288 7 месяцев назад
Awesome video
@Frank-xu2ed
@Frank-xu2ed 2 месяца назад
I agree with all of these, but as a short this obviously lacks depth. Async logs are bad, if you logs are important and would be gone if the app crashes. So if you need to optimize it, maybe send them async to another system and make it 'their' problem. Caching is very good, cache invalidation might be the hardest thing you ever have to do, so only cache what you absolutely need to speed up and only implement it after you figured out when and how cache needs to be flushed
@orterves
@orterves 6 месяцев назад
Pagination isn't for fast response time exactly (though it does tend to help that), it's for client-sized chunks of an otherwise large data set. Streaming is for providing a quick time to first byte, and it could be a stream of individual items or batches of items, of a page of the data or of the entire data set
@awabomer
@awabomer 7 месяцев назад
Couldn't find the link to that book
@zuowang5185
@zuowang5185 25 дней назад
Does python logging provide asynchronous functionality out of the box?
@bluefrancis14
@bluefrancis14 7 месяцев назад
Remember kids, when using lambda, yun proxysql or rds proxy
@daovietpro
@daovietpro 5 месяцев назад
thanks doctor
@AnonYmous-yu6hv
@AnonYmous-yu6hv 6 месяцев назад
What is a connection pool? Is this a service? Does rds have it?
@abiiranathan
@abiiranathan 6 месяцев назад
I use all these in my application. Premature optimization hasn't come to mind yet 😅
@sirfinsaan
@sirfinsaan 6 месяцев назад
Nice
@passionforprogramming3693
@passionforprogramming3693 6 месяцев назад
Am working on an app with some level of concurrency, what connection pool limit is optimal for a Postgres database
@termigiovas
@termigiovas 7 месяцев назад
I want to learn rust so I’m going to create an API with all of those 5 good practices
@ironclock
@ironclock 2 месяца назад
At what point should you start using redis?
@safsaf2k
@safsaf2k 6 месяцев назад
What’s a tool can used to monitor API performance?
@pegasusgemini6541
@pegasusgemini6541 7 месяцев назад
How to implement async logging ?
@danielschmider5069
@danielschmider5069 6 месяцев назад
I highly doubt compressing your data increases performance very much, if at all. You save a few bytes transmitting it, but you have to compress all the bytes, which is a performance cost.
@yatinarora1252
@yatinarora1252 Месяц назад
But the things we transfer needs to be downloaded at other end thereby faster response.
@philippitc-cloud
@philippitc-cloud 6 месяцев назад
though most of the time these patterns are just nice to have and each of them brings tons of issues with them.
@Lima3578user
@Lima3578user 5 месяцев назад
This is gold
@myhdr
@myhdr 6 месяцев назад
how do you design these nice animations?
@metachain5345
@metachain5345 4 месяца назад
where's the links to download ebook?
@rohaanuv
@rohaanuv 3 месяца назад
Where I will get this ebook
@gus473
@gus473 7 месяцев назад
"Optimize" is my middle name! 😎✌️
@markbolt7309
@markbolt7309 8 дней назад
My Mr Miyagi 🎉🎉
@rakharuan
@rakharuan 4 месяца назад
Where's the link?
@innovafrique
@innovafrique 6 месяцев назад
Create a course please
@AnudeepKolluri
@AnudeepKolluri 3 месяца назад
bro i see you everywhere
@christianrazvan
@christianrazvan 6 месяцев назад
90% of don't apply on apps that work with money and customers want to see all the data at once...
@AhmedAli-jx9ie
@AhmedAli-jx9ie 6 месяцев назад
nothing in bio
@engr.ashrafuzzaman
@engr.ashrafuzzaman 4 месяца назад
@amit2955
@amit2955 7 месяцев назад
👍
@billyhagood6014
@billyhagood6014 7 месяцев назад
Easy to say, harder to implement
@rahul169sharma
@rahul169sharma 7 месяцев назад
not at all. these are very common design patterns. if you use a framework, you'd get most, if not all, for free.
@sulafpv
@sulafpv 5 месяцев назад
Caching is not the easy way to optimize your API
@adewunmijoseph2070
@adewunmijoseph2070 3 месяца назад
😮
@duskchancellor-if8yi
@duskchancellor-if8yi 22 дня назад
i wanna say that i love u
@michaelmasanabo611
@michaelmasanabo611 Месяц назад
Was that a dig at tik tok.
@orashusedmund7675
@orashusedmund7675 4 месяца назад
great video sir, how could I get the free e-book? 🥹
Далее
The Story of Next.js
12:13
Просмотров 565 тыс.
Top 7 Ways to 10x Your API Performance
6:05
Просмотров 324 тыс.
OBLADAET - BARMAN
03:06
Просмотров 102 тыс.
Good APIs Vs Bad APIs: 7 Tips for API Design
5:48
Просмотров 229 тыс.
Node.js is a serious thing now… (2023)
8:18
Просмотров 641 тыс.
20 System Design Concepts Explained in 10 Minutes
11:41
7 Must-know Strategies to Scale Your Database
8:42
Просмотров 96 тыс.
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 941 тыс.
Using docker in unusual ways
12:58
Просмотров 440 тыс.
Is Gravity RANDOM Not Quantum?
20:19
Просмотров 246 тыс.
Session Vs JWT: The Differences You May Not Know!
7:00