Тёмный

NEVER Write This Line Of Code In Production. Seriously 

Amigoscode
Подписаться 925 тыс.
Просмотров 58 тыс.
50% 1

In this video I will show how a simple line of code can bring your entire application down and cause Java Heap Space fill up. Yet a lot of beginners do this time and time again.
SELECT * FROM table - What is wrong with code?
#java #springboot3 #debugging
Don't Forget to
===========================================
💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
💯 Courses Available for free here - amigoscode.com/courses
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
🙊 Here are the goods for all my videos video 🙊
► Recommended Books
===========================================
- Clean Code - amzn.to/2UGDPlX
- HTTP: The Definitive Guide - amzn.to/2JDVi8s
- Clean Architecture - amzn.to/2xOBNXW
► Computer and Monitor
===========================================
- New Apple MacBook Pro - amzn.to/3464Mmn
- Dell 27 INCH Ultrasharp U2719D Monitor - amzn.to/2xM3nW1
- Double Arm Stand Desk Mount - amzn.to/3aYKKfs
- USB C Hub Multiport Adapter - amzn.to/2Jz7NlL
► Camera Gear
=============================================
- Sony ILCE7M3B Full Frame Mirrorless Camera - amzn.to/346QIJn
- Sigma 16 mm F1.4 DC DN - amzn.to/2wbic3Q
- Sigma 33B965 30 mm F1.4 DC DC - amzn.to/39G37Fd
► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime
P.S
===========================================
💯 Don't forget to subscribe | bit.ly/2HpF5V8
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
💯 Follow me on Instagram | bit.ly/2TSkA9w
❤️ Thanks for watching

Наука

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

 

25 фев 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 93   
@amigoscode
@amigoscode Год назад
Join Waiting List here: waiting-list.amigoscode.com/ Please dont break the app: www.full-stack-react.amigoscode.dev/
@simonfarre4907
@simonfarre4907 Год назад
I'm not a Java programmer, I work in other languages;, so my question is, why is your SQL-query string mutable? (`var`) Why not use `val` there?
@richard2218188
@richard2218188 Год назад
Real email at 3:40 ?
@thilinamadushanka514
@thilinamadushanka514 Год назад
Hi, I got that error when trying to get data to report from a database by jdbc query..I want all these records..Is there any way to handle that case..?
@abbad_
@abbad_ Год назад
Salam aleykoum brother as a backend and DevOps Engineer I love your channel but i specifically loved this video that depicts what we actually do in our day to day job and the entire process from debugging, development, testing and finally deployment.
@locluvstkn6878
@locluvstkn6878 Год назад
Exactly! Thank you for presenting the full journey! This is gold!
@nandomax3
@nandomax3 Год назад
That's amazing. Coding is the first step, the second step and so on is trying to maintain the app work. I have a long list of exceptions to debug on my day to day job
@azimutjava
@azimutjava Год назад
I writing own study spring project as a course as well. And definitely saying - you did a grate job. And this is a just a bug in production. Critical, but solved. Nothing more. Thank you for you work!
@ahmedhosny4910
@ahmedhosny4910 Год назад
the person who broke the application did great favor for the junior developers like me to learn and write safe queries in production thanks nelson ❤
@danielkirsch4351
@danielkirsch4351 Год назад
Love this, perfect opportunity to show full dev cycle with debugging, code commits and ci/cd pipeline to deployment.
@houssemmhamdi1137
@houssemmhamdi1137 Год назад
Salam bro, Ramadhan mubarek! as an SDET we always face these kinds of issue when running load tests or automations scripts! thanks for the video and eid mubarek soon inshallah
@znacly1184
@znacly1184 Год назад
I love this. Thanks for sharing a live issue! Might be a good reason to discuss bloom filters or web application firewalls to mitigate these issues beforehand? *e.g., you’ve stopped the crash, but you’re still paying for all of that bad data to be stored by Amazon! Again, thank you for your videos! They’ve been extremely helpful in my journey to learning S.E.
@xenia5033
@xenia5033 Год назад
This video is just in time! Thank you!
@AleksandarT10
@AleksandarT10 Год назад
Great video! Important topic to keep in mind for all developers. Anyway do you have a video where you show Elasticbeanstalk Deployments with Docker image? Thanks a lot
@Jumanji_Dev
@Jumanji_Dev Год назад
Loved it maan... Thanks👌
@Ryudith
@Ryudith Год назад
lol, you remind me when I was a Superman - design, build and manage server all by myself. It was stressful if something happen and hope boss didn't find it, because so hassle to handle office politics with other. I wonder why you not limit list in first place and don't forget to auto backup database which I often forget and it become really mess when I accidentally clean table record because client said the server is testing but actually production. Btw, welcome to online world. 😀
@timmelis4872
@timmelis4872 Год назад
Very nice video. Very useful. ... Do you have a course on building a Spring Boot app and deploying it to AWS ?
@ferahnuma
@ferahnuma Год назад
Salam Bro. Thanks for your inspiring tutorials. I have a question about the platform where your application is deployed? Which service are you using? I just saw Elastic Bean Stalk. Does it also have a sandbox environment? What platform would you recommend to play around with the whole pipeline from development till deployment using container technologies like docker. Thanks in advance.
@svalyavasvalyava9867
@svalyavasvalyava9867 Год назад
thank you for sharing knowledge and experience 😊
@lts8683
@lts8683 Год назад
We need more like this recommendation for the production
@muurimc
@muurimc Год назад
Great video and you definetely have a point
@elvisdorkenoo
@elvisdorkenoo Год назад
Nelson, please could you add a Gradle(in place of maven) implementation to your course ?
@petarvjakovski2003
@petarvjakovski2003 Год назад
Hi Nelson. Could you please tell me which theme are you using for IntelliJ?
@fahadgaliwango4502
@fahadgaliwango4502 Год назад
wonderful resource , but what recommendations Incase I to generate a report from large dataset from database.
@BabbarOP
@BabbarOP Год назад
I've one question! Earlier we were getting OOM exception because we were creating 120K objects in heap. But what if 1000 users now access your application so everytime 1000 objects will be created. How will heap handle it?
@Zeroazcar
@Zeroazcar Год назад
Do you have a CI/CD course? That what you show was very interesting.
@AdityoPratama
@AdityoPratama Год назад
hey, thats very cool unit test animation there
@WalkWithM3
@WalkWithM3 Год назад
Selamin Aleykum, Hi brother, I think it is also worth to mention that browser has also limited capacity to display. Other solutions to that can be pagination and ajax call with bulk append. What donyou think?
@agungdonga2401
@agungdonga2401 Год назад
Hi, I've a question, it's it good idea, when I getAll data from my db which is almost 1M data, and at the view page i use a datatables which is have a paging feature?
@crimsOn0011
@crimsOn0011 Год назад
I did not expect a lesson with a slice of the software engineer life. (Jokes aside, nice, humorous video!)
@fazilmes
@fazilmes Год назад
How about implementing Lazy Loading using Spring.
@arane16815
@arane16815 Год назад
와 네이버로 보고 들어왔네 오우 깜놀ㅋ기 thank you good video!!
@CryptoKosh
@CryptoKosh 11 месяцев назад
How you decide the page size… what if the page meta data grows horizontally? Will again need to reduce the page size?
@javacoder-db3fg
@javacoder-db3fg 9 месяцев назад
I encountered this when I was building a music application with javafx the program reads all music files from the computer and convert it to my custom song class then it writes to text file with printwriter for later use and when it tries to load my custom song files from a text file it throws java heap space error
@bulogging
@bulogging Год назад
I think you might’ve done it as a mistake, but I think it would be good to censor-out the user data, especially their emails, age, and gender - love the contents and keep it up! 🙂
@megabain
@megabain Год назад
The emails look really fake and randomly generated. So I think its okay. But nice catch!
@travellershouse6480
@travellershouse6480 Год назад
We did have some kinds of this issues in production because some colleague have Add a lot of FETCH in HQL method
@MrMoonplus
@MrMoonplus Год назад
@amigoscode what if we want to export 1 lacs data into file i.e json file . (Using api)
@andyvandenberghe6364
@andyvandenberghe6364 Год назад
oeps i think you missed the where/limit conditions. that will cause a heap space exception for sure. i've seen this aswell. Data engineering is often a missed skillset for pure java devs.
@saturnteatree
@saturnteatree Год назад
I have the same issue on my site just a bunch of random generated users and contacts i need to add a captca and 2-factor id
@kevinlang5873
@kevinlang5873 Год назад
From what video is this project on?
@caffeinejavacode1475
@caffeinejavacode1475 Год назад
I would be nice create new topic (tips) and playlist with advices like this
@Mr.RaviTeja
@Mr.RaviTeja Год назад
where exactly heap memory error is coming out, unable to debug. can you tell me in gcp how to debug heap memory of particular server.
@shogant
@shogant Год назад
Should the test expect results
@Im_not_scareddd
@Im_not_scareddd Год назад
Salaam alaikum bro please create a video on how to draw the the application stracture and architecture using intellij
@devrub623
@devrub623 Год назад
What about using cache ?
@netmarvintube
@netmarvintube Год назад
Hahaha..... Amigooo!!!! It was not my fault!!!! Lets go!!!!
@thabo5799
@thabo5799 Год назад
In my junior year I once pushed select * records with no limit. My PR wasn’t reviewed properly and no tests were implemented. You can guess what happened next 😅😂
@lmax0001
@lmax0001 Год назад
Come on man, you can't miss that. :)
@sofiyan_ifren
@sofiyan_ifren Год назад
Yeah, lot of these kind of problems are really occurring in tech companies... 🙄
@sansmoraxz
@sansmoraxz 11 месяцев назад
Hommie you can do the same shit but way better with jpa rather than jdbc. Also if you use paginate you can stream it as much as you want without facing mem related crashes.
@jimishukurow2286
@jimishukurow2286 Год назад
that is DDOS attack ...
@Talish1986
@Talish1986 Год назад
Salam Aleykom. If I want to fetch all. What should I do then?)
@georgiivanov8936
@georgiivanov8936 Год назад
Add a lot of ram memory :)
@matthewoluwadare
@matthewoluwadare Год назад
It looks like they really are fake accounts because the real ones have profile images but the fakes have no profile image, perhaps you could delete the fakes if verified.
@pedrobastos4342
@pedrobastos4342 Год назад
What if 10, 100 or 1000 people wants to list the page at the same time what will happen? 1000 * 1000 = 1.000.000 of objects
@simopr09
@simopr09 Год назад
You can try it yourself and see what happens. just write a skipt that calls the endoind 1000 times
@jamesraphael8473
@jamesraphael8473 Год назад
When will i get to the stage of understanding all these😒😒😒😒😒
@user-kh9nm3tr1v
@user-kh9nm3tr1v Год назад
Now it’s interesting to find another issue that will break your app brother😂
@CamembertDave
@CamembertDave Год назад
3:05 Should you really be showing this? 3:10 Oh I see, lol
@djoleezcool
@djoleezcool Год назад
Hey hey Giorgi's here! 🙌
@staywidz9998
@staywidz9998 Год назад
119k is a rookie number, but i guess some servers can't handle shit
@devdadph
@devdadph Год назад
I think I'm a mind reader already 🤣 P.S. this comment is a Fan(friendly) comment N*son inner voice: I will ruin your production by loading huge amounts of records that your code is not ready to handle N*son: ohh, great plan! I can create content showing the real-world issues encountered by these companies deploying codes without big data testing N*son inner voice: YES! right on point! N*son: YEAH! then I will also blame you for what happened... N*son inner voice: yeah, let's do it!..... Eh wait what? 😕😶‍🌫😶‍🌫
@artetl
@artetl Год назад
This problem completely obvious for any SQL developer so that means - learn database before!
@sailingbytes4399
@sailingbytes4399 Год назад
I really hope that the customer data shown, is created randomly and that you're not showing the original database here? ;)
@glennmerrill88ify
@glennmerrill88ify Год назад
He explains that those are fake accounts. If you look at the emails for each you can obviously tell.
@sailingbytes4399
@sailingbytes4399 Год назад
@@glennmerrill88ify My bad, I think I missed the part where he said, that it's fakedata. That's good, 'cause otherwise I would be really conserned about the integrity of his database :)
@thechosenone8523
@thechosenone8523 Год назад
I did this.
@papafall9726
@papafall9726 Год назад
🤷‍♂️ Walahi wasn’t me…. Nothing to do with me I swear. Masha’Allah
@rajab1365
@rajab1365 Год назад
bro math is important when it comes to software engineering 🤔
@jpbastyr
@jpbastyr Год назад
definitely random, you can see that none of the emails match their names lol
@lebdesmath2510
@lebdesmath2510 Год назад
why put music ??? )::::
@josedegracia5246
@josedegracia5246 Год назад
Hi
@programmingwithnurulhuda
@programmingwithnurulhuda Год назад
Whoever is reading this, never give up. God is with you.
@IvanRandomDude
@IvanRandomDude Год назад
9:58 Damn, I almost forgot how slow build is in Java.
@jesper2455
@jesper2455 Год назад
That has nothing to do with Maven builds, what is taking so long is running the tests. And it seems he's not only running basic unit tests but also integration tests which usually takes more time.
@babagrilo
@babagrilo Год назад
أحبك في الله أخي
@jopadjr
@jopadjr Год назад
988th...Thanks
@matusseidl
@matusseidl Год назад
you did nothing just add a limit how what if you need 1001 or items from 1000 to 1100, it could be fine to show how to use pagination and offset as well
@prateekgupta2567
@prateekgupta2567 Год назад
First here
@ADVENTUREVLOG6722
@ADVENTUREVLOG6722 Год назад
Third here
@scopes2512
@scopes2512 Год назад
Assalamu Alaykum amigoscode I love the content. I wanted to notify you as you are muslim that at 11:48 you said fingers crossed multiple times and we ass muslim are forbidden from ever saying that as it is what the christians do (referring to their belief of jesus) and is shirk. I love you for the sake of Allah and wanted to notify you. Again love the content!
@Johnnydhee
@Johnnydhee Год назад
Your hate has no place in this video. Disgusting.
@youssefbouchara1179
@youssefbouchara1179 Год назад
That's why I use tests with real components instead of Mockito :D
@andresnator
@andresnator Год назад
Integration test
@youssefbouchara1179
@youssefbouchara1179 Год назад
@@andresnator right, i test my method with real comps and h2 so I guess its considered integration instead of unit
@lovetheentertainment9949
@lovetheentertainment9949 Год назад
Need video on java 8 Date and Time
@wilfriedklaebe
@wilfriedklaebe Год назад
Really? Java 8? Switch to something newer. Java 17 is LTS.
@feloniousmonkey
@feloniousmonkey Год назад
Jesus...use spring data and proper pagination...
@kicknotes
@kicknotes Год назад
"I didn't expect..." Always expect. Proactive is always better than reactive.
Далее
Let's Review Your Backend Code | SHALL WE???
36:24
Просмотров 299 тыс.
10 Most Common Java Developer Mistakes
16:13
Просмотров 100 тыс.
What is a Proxy Server?
4:43
Просмотров 1,6 млн
Differences Between Minecraft Java VS Bedrock
11:41
how does source become code?
8:47
Просмотров 92 тыс.
Minecraft Java VS Bedrock #shorts
0:59
Просмотров 613 тыс.
Here's The Secret How To Create These Animated Diagrams
11:12
What Is MVC? Simple Explanation
10:40
Просмотров 509 тыс.
iOS Dev Job Interview - Must Know Topics
2:27:40
Просмотров 68 тыс.
iphone fold ? #spongebob #spongebobsquarepants
0:15
Просмотров 201 тыс.
ПК с Авито за 3000р
0:58
Просмотров 1,5 млн
Топ-3 суперкрутых ПК из CompShop
1:00