Тёмный

Top 5 API Performance Tips  

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

Get our 158-page System Design PDF for free by subscribing to our weekly newsletter: bit.ly/bytebytegoYTshorts
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.

Наука

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

 

21 янв 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@AmbushEveryone
@AmbushEveryone 5 месяцев назад
I'm just learning how to build APIs and this some of the best info I've come across yet :)
@paultvshow
@paultvshow 5 месяцев назад
How is your progress and what is your background?
@AmbushEveryone
@AmbushEveryone 5 месяцев назад
@@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 4 месяца назад
@@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 3 месяца назад
@@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 3 месяца назад
💯
@prukenope
@prukenope 5 месяцев назад
honestly, this guy is master of concept for me now
@munsifalimisri
@munsifalimisri 4 месяца назад
Pagination Asynchronous logging Caching Payload compression Connection pooling
@rishiraj2548
@rishiraj2548 Месяц назад
Thanks
@georgepagotelis
@georgepagotelis 28 дней назад
So a short that is less than 30s you've summarised? Lol
@ridabrahim7604
@ridabrahim7604 12 дней назад
​@@georgepagotelis bro it's 2024 a whole year must be served in 3 seconds duuuh
@lyvo398
@lyvo398 3 месяца назад
I love your simple and professional diagrams! Thank you for your passion.
@IM4fLEX
@IM4fLEX 5 месяцев назад
Love these shorts. Keep making them good sir.
@rohaanuv
@rohaanuv 2 месяца назад
Where I get the ebook
@doxologist
@doxologist 5 месяцев назад
Love these primers. You can never be too experienced to learn something from them :)
@oneautumnleaf47
@oneautumnleaf47 4 месяца назад
I'm already doing them without noticing. 😂. Nice shorts tho. Very informative
@biokode
@biokode 13 дней назад
Oooh, I'm looking forward to reading that ebook!!
@calderov
@calderov 5 месяцев назад
This channel is gold 🪙
@azy22222
@azy22222 2 месяца назад
This is proper professional ta!
@morgwai667
@morgwai667 5 месяцев назад
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 2 месяца назад
Thats also what I was thinking.
@AlexSouthwell
@AlexSouthwell 2 месяца назад
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
@monsieurnet
@monsieurnet 2 месяца назад
Connection pool is a great idea. I will try it.
@brianpetersen7227
@brianpetersen7227 5 месяцев назад
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 Месяц назад
you can also use binary data format like avro instead of json
@LCTesla
@LCTesla Месяц назад
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 5 месяцев назад
Love this! Can you share the software that is used for these animations? - aspiring solution architect 😊
@baljka17
@baljka17 4 месяца назад
Crazy useful !!
@GuidoGeloso
@GuidoGeloso Месяц назад
Not new but good to remember
@irnehhenri
@irnehhenri 4 месяца назад
Asynchronous logging is alreary standard if you don't prevent the OS from handling disk write buffering
@zbt_official
@zbt_official 4 месяца назад
Thank you for sharing, your video is very well done
@vast634
@vast634 5 месяцев назад
Makes all sense. Adds complexity though.
@cec408_adityachoudhari5
@cec408_adityachoudhari5 2 месяца назад
Tysm😊
@dlimon_
@dlimon_ 4 месяца назад
very helpful tips!
@DJ-bo4pz
@DJ-bo4pz 3 месяца назад
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.
@armando.alamilla
@armando.alamilla Месяц назад
Hey! I love these shorts. How do you edit them?
@algalib.mp4
@algalib.mp4 5 месяцев назад
Really good info❤
@Migatitolindo123
@Migatitolindo123 4 месяца назад
Awesome 🎉
@pham3383
@pham3383 Месяц назад
Very easy to underrated Even though i am an electrical engineer
@AshrafMMA
@AshrafMMA 5 месяцев назад
where's the link to download the free ebook?
@BollyVibesforewer
@BollyVibesforewer Месяц назад
Can you tell more about which tool are you using for this design animation? It looks preety cool though.
@daovietpro
@daovietpro 4 месяца назад
thanks doctor
@rhinelandnagel7288
@rhinelandnagel7288 5 месяцев назад
Awesome video
@jamesu1675
@jamesu1675 Месяц назад
you can learn more about these concepts thru virtual memory
@bluefrancis14
@bluefrancis14 5 месяцев назад
Remember kids, when using lambda, yun proxysql or rds proxy
@Lima3578user
@Lima3578user 4 месяца назад
This is gold
@termigiovas
@termigiovas 5 месяцев назад
I want to learn rust so I’m going to create an API with all of those 5 good practices
@abiiranathan
@abiiranathan 5 месяцев назад
I use all these in my application. Premature optimization hasn't come to mind yet 😅
@awabomer
@awabomer 5 месяцев назад
Couldn't find the link to that book
@sirfinsaan
@sirfinsaan 5 месяцев назад
Nice
@Tony-dp1rl
@Tony-dp1rl 5 месяцев назад
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 5 месяцев назад
that also challenged me ..maybe he meant videos and text files
@pegasusgemini6541
@pegasusgemini6541 5 месяцев назад
How to implement async logging ?
@philippitc-cloud
@philippitc-cloud 5 месяцев назад
though most of the time these patterns are just nice to have and each of them brings tons of issues with them.
@safsaf2k
@safsaf2k 4 месяца назад
What’s a tool can used to monitor API performance?
@gus473
@gus473 5 месяцев назад
"Optimize" is my middle name! 😎✌️
@AnonYmous-yu6hv
@AnonYmous-yu6hv 5 месяцев назад
What is a connection pool? Is this a service? Does rds have it?
@myhdr
@myhdr 5 месяцев назад
how do you design these nice animations?
@ironclock
@ironclock Месяц назад
At what point should you start using redis?
@engr.ashrafuzzaman
@engr.ashrafuzzaman 3 месяца назад
@innovafrique
@innovafrique 5 месяцев назад
Create a course please
@amit2955
@amit2955 5 месяцев назад
👍
@passionforprogramming3693
@passionforprogramming3693 4 месяца назад
Am working on an app with some level of concurrency, what connection pool limit is optimal for a Postgres database
@metachain5345
@metachain5345 3 месяца назад
where's the links to download ebook?
@AnudeepKolluri
@AnudeepKolluri 2 месяца назад
bro i see you everywhere
@rohaanuv
@rohaanuv 2 месяца назад
Where I will get this ebook
@adewunmijoseph2070
@adewunmijoseph2070 2 месяца назад
😮
@rakharuan
@rakharuan 3 месяца назад
Where's the link?
@danielschmider5069
@danielschmider5069 5 месяцев назад
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 8 дней назад
But the things we transfer needs to be downloaded at other end thereby faster response.
@Frank-xu2ed
@Frank-xu2ed Месяц назад
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
@AhmedAli-jx9ie
@AhmedAli-jx9ie 5 месяцев назад
nothing in bio
@christianrazvan
@christianrazvan 4 месяца назад
90% of don't apply on apps that work with money and customers want to see all the data at once...
@orterves
@orterves 5 месяцев назад
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
@billyhagood6014
@billyhagood6014 5 месяцев назад
Easy to say, harder to implement
@rahul169sharma
@rahul169sharma 5 месяцев назад
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 3 месяца назад
Caching is not the easy way to optimize your API
@orashusedmund7675
@orashusedmund7675 3 месяца назад
great video sir, how could I get the free e-book? 🥹
Далее
Concurrency Vs Parallelism!
4:13
Просмотров 53 тыс.
System Design Interview: A Step-By-Step Guide
9:54
Просмотров 617 тыс.
다리에 힘이 풀려버린 슈슈 (NG Ver.)
00:11
Просмотров 2,3 млн
Top 12 Tips For API Security
9:47
Просмотров 81 тыс.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
API Gateway Explained Quickly
4:23
Просмотров 12 тыс.
What is an API (in 5 minutes)
4:56
Просмотров 599 тыс.
7 Must-know Strategies to Scale Your Database
8:42
Просмотров 75 тыс.
5 Tips To Organize Python Code
12:16
Просмотров 222 тыс.
Top 9 Most Popular API Protocols
3:54
Просмотров 73 тыс.
APIs Explained (in 4 Minutes)
3:57
Просмотров 719 тыс.
Every React Concept Explained in 12 Minutes
11:53
Просмотров 467 тыс.
Треш ПК за 420 000 рублей
0:59
Просмотров 241 тыс.