I tried implementing SSE on my website, with Next.js as the client and Express.js as the server. It worked smoothly locally, but when I deployed it on GCP, it didn't function correctly. The server was able to send messages, but the client wasn't able to receive them. Can you help me understand why this isn't working?
@keyonlewis75743 күн бұрын
KZreadr: when he say statefulness me: flutter is that you
@andreujuanc3 күн бұрын
I like the format of this video. Subscribed.
@jameslund67816 күн бұрын
keep the videos coming ryan!!
@fadhlirahim6 күн бұрын
what a voice!
@Dyanosis9 күн бұрын
One small tweak to thinking about the latency of Microservices - They are communicating (hopefully) over an intranet, not the internet. The problem with 3rd party APIs (like, say, using Google for Oauth) is that you have to traverse the internet to access it. To be clear about what I'm saying, here's an example: Accessing data from a microservice is like going to your neighbor's house in the same neighborhood (within a specific distance, like 1/4 of a mile, let's say). Accessing data from a 3rd party service, like Google Oauth, is like having to get on the highway. One is much less busy and a much shorter route while the other is a much longer route and potentially packed with traffic. Not saying that there is no latency with an intranet, but it's negligible compared to 3rd party services.
@Ea_Nasir_The_Akkadian9 күн бұрын
Using the SharedArrayBuffered requires some particular HTTP header?
@codecaine10 күн бұрын
10:03
@sharjeelahmed791310 күн бұрын
To think that it all started with a Hello World at first and built into this
@rogerangel945711 күн бұрын
Damn bro made me subscribe. 2024 I'm learning Go
@yashbhatt449811 күн бұрын
How you guys learn c++ (i'm learning c++ for about 1 year) And I can't understand by watching things like this... It's frustrating😭
@MilitaryInsights11 күн бұрын
Yo man thanks for informative vid Can i get source code for the game please Thanks in advanc bro <3
@thisisreallyme313011 күн бұрын
.? What is the extra empty parenthesis at 2:34? Just after the go function datachan .
@MaxStudioCG202311 күн бұрын
so you didnt leave for us a link to get that code :l ...that's sad
@CrusaderGeneral15 күн бұрын
unless you need duplex, forget about sockets.. sse is way simpler and less demanding on networks and servers.. actually, I was struggling to get socketio app to run on azure app service, then this video reminded me about SSE, which I completely forgot, even though I have been working with signalr for a decade.. nodejs+sse is all anyone really needs.. there is no real need to push messages from client to server, they already have a tech for that, its called REST. One more thing, sockets doesnt support auth headers, which means you have to pass the JWT in the QS. This is a serious security vulnerability, no matter what the "experts" say.. SSE, you can pass the JWT right in the Auth header.. and thank you my friend for pulling me out of the endless loop of docker, azure, app services, bla bla bla
@andyyarys446717 күн бұрын
Thank You! All very clarify and helpful.
@notrumur17 күн бұрын
im pretty new to coding but after playing the PC ports of these old GTA games, is it even worth looking at the source code still? they wouldnt really meet up with todays standards.
@elvispalace19 күн бұрын
more videos plz
@muhammadfahad348321 күн бұрын
Is not this parrallel?
@tankdempsey243321 күн бұрын
Yo , how do I get the codes program file ?
@60RPM22 күн бұрын
Nice - had heard of the EventSource API while picking through MDN but never knew how they worked server side
@AndyTandy22 күн бұрын
Your voice quality is really crisp, what's the microphone model?
@_-pw7yt22 күн бұрын
Please modify the code and make it swiming
@jeuxdeau200923 күн бұрын
Thanks bro
@mdzidane962023 күн бұрын
astonishing
@user-nz4og2tj2i23 күн бұрын
One needs -a server endoint -them headers -a while loop running on the endpoint. -inside the loop an async function that awaits for your viewmodel (body) task to be complete. -a singleton SseService. -a private constructor with inside of it a subscription to a home made server side event. -a function that triggers the event. -a SemaphoreSlim or a TaskCompletionSource to handle concurrent acces. Hallelujah !!! Oh and the event source in Javascript (the endpoint ) to update da client ui with your beautiful viewmodel of course. And to close the event source in the beforeupload event (also js) 😅
@user-nz4og2tj2i23 күн бұрын
Forgot to mention the result: One gets server side events triggerred on actual events.
@siamimam210924 күн бұрын
I wish my college professors gave us real life examples like this!! They taught us inheritance, class, object etc but never really taught us how they are implemented in the real world.
@YoubaBakhouche25 күн бұрын
ofc no github repo link for idk what reason
@EvilMrMahler6925 күн бұрын
are those 8 space tabs? :(
@andi_decha26 күн бұрын
gta3 is cool.
@hater881826 күн бұрын
Code looks so clean and readable)))) Violating every single thing in clean code and solid))))
@Martial_Monkey26 күн бұрын
Ah, the good old C++ (C++98?) without all the fancy, confusing, "modern" C++ stuff.
@trentvlak26 күн бұрын
Nodejs doesn't support BLM anymore so I can't in good conscience use them.
@herbertpimentel27 күн бұрын
Thank you very much, I did lost an amazing job opportunity because I could not explain exactly it. You did it sou clearly that next time I will no fail 😅
@aquss33Ай бұрын
at this point rockstar should just release code for their really old games (before gta 4), nobody pays for them anymore, everyone owns a pirated copy for pc and anyone can pirate them for old consoles... Many people even have revere engineered code for many of their games (or even original code for gta 5), I can't imagine that releasing gta sa code for example would hurt sales of san andreas, since nobody bought that game in the last 10 years lol
@ahsanulhasan31Ай бұрын
JUST AFTER LOOKING AT THE CODE YOU CAN SAY THAT THIS AIN'T R* PRODUCED CODE! CZ IT AIN'T SHlTTY BUGGY UNREADABLE BRAINFCUK OF A CODE!
@yamen_727Ай бұрын
معقول لهذه درجة سهل قراءة الكود خاص بالعاب روكستار؟ اذن لماذا يقولون تسرب كود مصدري للعبة جي تي اي فايف اذا كان يمكن قراءتها بسهولة؟
@body_clockАй бұрын
how do you have your terminal come down from the top like that?
@coldcrushforceАй бұрын
Very useful thank you
@scotts6264Ай бұрын
Epic video
@moccomoccoАй бұрын
Awesome. I was facing this same issue. The only better thing here is if you can show how you put this on a cloud platform.
@krolmuchАй бұрын
wow it tells you are black. nothing important derieved from this video. you just read it like an audiobook.
@1apostoliАй бұрын
i feel like this guy would destroy me in smash bros
@TarekconquesoАй бұрын
is my comment really an event ? checking out the dev tools dont mind me
@enzofalone9643Ай бұрын
Hey what kind of dock do you use to change between your laptop and gaming pc?
@lenonkitchens7727Ай бұрын
Comments, variable names, function names etc can't be retrieved via decompilation / reverse engineering, unless debug symbols are present. So all of the comments and names of everything are likely solely attributable to the folks that did the reverse engineering.
@MrYerak5Ай бұрын
What happens on error like deviding two empty strings?
Пікірлер
Where can I download these codes
very good video
thanks man
I tried implementing SSE on my website, with Next.js as the client and Express.js as the server. It worked smoothly locally, but when I deployed it on GCP, it didn't function correctly. The server was able to send messages, but the client wasn't able to receive them. Can you help me understand why this isn't working?
KZreadr: when he say statefulness me: flutter is that you
I like the format of this video. Subscribed.
keep the videos coming ryan!!
what a voice!
One small tweak to thinking about the latency of Microservices - They are communicating (hopefully) over an intranet, not the internet. The problem with 3rd party APIs (like, say, using Google for Oauth) is that you have to traverse the internet to access it. To be clear about what I'm saying, here's an example: Accessing data from a microservice is like going to your neighbor's house in the same neighborhood (within a specific distance, like 1/4 of a mile, let's say). Accessing data from a 3rd party service, like Google Oauth, is like having to get on the highway. One is much less busy and a much shorter route while the other is a much longer route and potentially packed with traffic. Not saying that there is no latency with an intranet, but it's negligible compared to 3rd party services.
Using the SharedArrayBuffered requires some particular HTTP header?
10:03
To think that it all started with a Hello World at first and built into this
Damn bro made me subscribe. 2024 I'm learning Go
How you guys learn c++ (i'm learning c++ for about 1 year) And I can't understand by watching things like this... It's frustrating😭
Yo man thanks for informative vid Can i get source code for the game please Thanks in advanc bro <3
.? What is the extra empty parenthesis at 2:34? Just after the go function datachan .
so you didnt leave for us a link to get that code :l ...that's sad
unless you need duplex, forget about sockets.. sse is way simpler and less demanding on networks and servers.. actually, I was struggling to get socketio app to run on azure app service, then this video reminded me about SSE, which I completely forgot, even though I have been working with signalr for a decade.. nodejs+sse is all anyone really needs.. there is no real need to push messages from client to server, they already have a tech for that, its called REST. One more thing, sockets doesnt support auth headers, which means you have to pass the JWT in the QS. This is a serious security vulnerability, no matter what the "experts" say.. SSE, you can pass the JWT right in the Auth header.. and thank you my friend for pulling me out of the endless loop of docker, azure, app services, bla bla bla
Thank You! All very clarify and helpful.
im pretty new to coding but after playing the PC ports of these old GTA games, is it even worth looking at the source code still? they wouldnt really meet up with todays standards.
more videos plz
Is not this parrallel?
Yo , how do I get the codes program file ?
Nice - had heard of the EventSource API while picking through MDN but never knew how they worked server side
Your voice quality is really crisp, what's the microphone model?
Please modify the code and make it swiming
Thanks bro
astonishing
One needs -a server endoint -them headers -a while loop running on the endpoint. -inside the loop an async function that awaits for your viewmodel (body) task to be complete. -a singleton SseService. -a private constructor with inside of it a subscription to a home made server side event. -a function that triggers the event. -a SemaphoreSlim or a TaskCompletionSource to handle concurrent acces. Hallelujah !!! Oh and the event source in Javascript (the endpoint ) to update da client ui with your beautiful viewmodel of course. And to close the event source in the beforeupload event (also js) 😅
Forgot to mention the result: One gets server side events triggerred on actual events.
I wish my college professors gave us real life examples like this!! They taught us inheritance, class, object etc but never really taught us how they are implemented in the real world.
ofc no github repo link for idk what reason
are those 8 space tabs? :(
gta3 is cool.
Code looks so clean and readable)))) Violating every single thing in clean code and solid))))
Ah, the good old C++ (C++98?) without all the fancy, confusing, "modern" C++ stuff.
Nodejs doesn't support BLM anymore so I can't in good conscience use them.
Thank you very much, I did lost an amazing job opportunity because I could not explain exactly it. You did it sou clearly that next time I will no fail 😅
at this point rockstar should just release code for their really old games (before gta 4), nobody pays for them anymore, everyone owns a pirated copy for pc and anyone can pirate them for old consoles... Many people even have revere engineered code for many of their games (or even original code for gta 5), I can't imagine that releasing gta sa code for example would hurt sales of san andreas, since nobody bought that game in the last 10 years lol
JUST AFTER LOOKING AT THE CODE YOU CAN SAY THAT THIS AIN'T R* PRODUCED CODE! CZ IT AIN'T SHlTTY BUGGY UNREADABLE BRAINFCUK OF A CODE!
معقول لهذه درجة سهل قراءة الكود خاص بالعاب روكستار؟ اذن لماذا يقولون تسرب كود مصدري للعبة جي تي اي فايف اذا كان يمكن قراءتها بسهولة؟
how do you have your terminal come down from the top like that?
Very useful thank you
Epic video
Awesome. I was facing this same issue. The only better thing here is if you can show how you put this on a cloud platform.
wow it tells you are black. nothing important derieved from this video. you just read it like an audiobook.
i feel like this guy would destroy me in smash bros
is my comment really an event ? checking out the dev tools dont mind me
Hey what kind of dock do you use to change between your laptop and gaming pc?
Comments, variable names, function names etc can't be retrieved via decompilation / reverse engineering, unless debug symbols are present. So all of the comments and names of everything are likely solely attributable to the folks that did the reverse engineering.
What happens on error like deviding two empty strings?