did i just finish my reverse proxy?????

  Рет қаралды 65,430

ThePrimeTime

ThePrimeTime

Күн бұрын

Пікірлер: 104
@trueberryless
@trueberryless 3 ай бұрын
Every programmer's last words: "It's not far from being done"
@ardoren5442
@ardoren5442 3 ай бұрын
it's prety much done locally, just have to push an MR real quick, don't worry about it
@elcapitan6126
@elcapitan6126 3 ай бұрын
tombstone reads: "he was so close"
@rzyr
@rzyr 3 ай бұрын
First 90% is usually way easier than the last 90%
@XDarkGreyX
@XDarkGreyX 3 ай бұрын
It is never done, but we are
@enderdas
@enderdas 3 ай бұрын
So close, yet so far away
@regiondeltas
@regiondeltas 3 ай бұрын
Interesting project - i do a lot of enterprise reverse proxy work and even just configuring them can be extremely complex at scale. So many crazy edge cases, and complex requirements especially around persistence, monitoring, ssl, rewriting etc
@sweep-
@sweep- 3 ай бұрын
The recap!!! This is awesome. Do more stream/project recaps please.
@MrHaggyy
@MrHaggyy 3 ай бұрын
^^ it's always fun how simple, efficent and beautiful such code is, as long as you only care about good actors. Once you have to take care about bad actors, especially nasty once, it gets so ugly and convoluted.
@thatmg
@thatmg 3 ай бұрын
TCP Tinder
@shampoable
@shampoable 3 ай бұрын
ratio there would be lucky to reach 1:9
@danielmiller8223
@danielmiller8223 3 ай бұрын
Just started following. You are so entertaining; I appreciate your excitement.
@E8A590
@E8A590 3 ай бұрын
Good job man. Keep it up and I hope you will have fun while doing it.
@alejandroalzatesanchez
@alejandroalzatesanchez 3 ай бұрын
It's cool seeing you geek out on your project, keep it up.
@WebDevCody
@WebDevCody 3 ай бұрын
my man, sip some herbal tea with honey
@auslacroix
@auslacroix 3 ай бұрын
More of this! So great! I love how you explain things.
@NostraDavid2
@NostraDavid2 3 ай бұрын
4:41 Structured Logging shown, let's go!
3 ай бұрын
The title makes me think of Betteridge's law of headlines
@purdysanchez
@purdysanchez 3 ай бұрын
Obviously if you're just using one matchmaking server it creates a single point of failure for all game servers in the event of a DDoS. But if that was really a concern you would use or create a sophisticated edge network that tries to prevent that. But then you're basically reinventing cloudflare (a way more complicated thing) to defend your game servers.
@ThePrimeTimeagen
@ThePrimeTimeagen 3 ай бұрын
That's the fun part!!
@dandogamer
@dandogamer 3 ай бұрын
​@@ThePrimeTimeagenplease re-create cloudflare without the trust and safety team 😂
@spacetime3
@spacetime3 3 ай бұрын
Super Entertaining project loves the comentary
@kossboss
@kossboss 3 ай бұрын
Pretty boxes my friend. Very well presented
@acrosstheocean25
@acrosstheocean25 3 ай бұрын
Awesome video! Please make more of these quick overviews that show some actual code
@pif5023
@pif5023 3 ай бұрын
Loved this!
@SpookieWhisper
@SpookieWhisper 3 ай бұрын
“Lowest level” 👷‍♂️ we can go lower
@Brymcon
@Brymcon 3 ай бұрын
This is amazing content.
@johnblomberg389
@johnblomberg389 3 ай бұрын
Now I'm worried about authentication 😬
@msl6384
@msl6384 3 ай бұрын
eBPF stuff would be really cool to watch, I've never used it myself though
@adiljamshad215
@adiljamshad215 3 ай бұрын
The amount of nerd talk in this video is amazing. I want to create such a thing myself too 😢
@hexxone
@hexxone 3 ай бұрын
You should check out the Star Citizen Server meshing Tech. I think their approach is really cool, but probably Has to be deeply integrated in the game engine. So probably not manageable in reasonable time
@thekwoka4707
@thekwoka4707 3 ай бұрын
And that it basically just the P2P meshing tech used in Destiny over 10 years ago.
@gungun974
@gungun974 3 ай бұрын
Your reverse proxy you made make me think of NAT + Firewall with the fact you need to filter than translate the ip than respond to the sockets. Or maybe NAT were always reverse proxy ?
@codemaluco
@codemaluco 3 ай бұрын
dang, u are looking good!
@lordkazoo4405
@lordkazoo4405 3 ай бұрын
Prime you are coding very Tiger style. I’m down with putting asserts throughout my code, but writing a simulator seems like a bit much to just pick up. How long did it take you to really get in to/master tiger style?
@DavidFregoli
@DavidFregoli 3 ай бұрын
your throat is killing me
@wasdasdasdcasdc
@wasdasdasdcasdc 3 ай бұрын
whats the text font in your neovim called
@yt.mhasan
@yt.mhasan 3 ай бұрын
I want to know too. Is that JetBrains Mono?
@jasontang6725
@jasontang6725 3 ай бұрын
Simulating client behavior is great. Will you also simulate sever processes dying and/or misbehaving?
@mattymerr701
@mattymerr701 3 ай бұрын
Like how SQLite has a really in-depth testing suite that tests for various hardware failures too
@rymcymcym8521
@rymcymcym8521 3 ай бұрын
thanks for the source code
@Kennstduwayne1001
@Kennstduwayne1001 3 ай бұрын
Please more recaps :)
@grillo_delmal
@grillo_delmal 3 ай бұрын
... will this able to handle reconnecting players that disconnected mid game?
@irvintorres4939
@irvintorres4939 3 ай бұрын
I liked it with my 10 google accounts
@david23627
@david23627 3 ай бұрын
bump
@jameswilcock8
@jameswilcock8 3 ай бұрын
Did i just make the reverse proxy of the summer?
@jbl271
@jbl271 3 ай бұрын
I don’t know, did you?
@joaofleumatico
@joaofleumatico 3 ай бұрын
i have not keeping up with prime's videos recently, did he mentioned why he opted to develop this with go instead of his beloved rust?
@TurtleKwitty
@TurtleKwitty 3 ай бұрын
He's been off the rust train for almost a year at this point, it's the year of learning go instead
@anwiseru9064
@anwiseru9064 3 ай бұрын
i like this
@embiem_
@embiem_ 3 ай бұрын
So is a matchmaking server essentially a reverse proxy with additional logic?
@smc4229
@smc4229 3 ай бұрын
Next step, direct server return ?
@robmorgan1214
@robmorgan1214 3 ай бұрын
You wrote a goodun... I'm working on something similar but in c++... with strongly typed (thingy) such that the compiler's proof checker is account for non business logic tests... I've semi rustified my code ... type safety not pretend memory safety (we're not animals here if you can point to it you can own it as far as I'm concerned).
@JeremySeanH
@JeremySeanH 3 ай бұрын
Loves go error handling. Doesn't handle errors
@yramagicman675
@yramagicman675 3 ай бұрын
It does handle errors, just not how we're used to errors being handled. Errors as values, which is the paradigm go falls into, is often more robust than try/catch because you know what can and cannot error based on the return type. It's still up to you to do stuff with those errors, but the compiler makes sure you've at least thought about it. Compared to JavaScript where half the functions in the browser can throw, and half the functions in Node can throw, but you don't know until you crash what can error, go error handling is extremely robust. (I'm not trying to be precise. I know it's not half, but I don't know if it's more than half or less than half of JS that can throw.)
@dolorsitametblue
@dolorsitametblue 3 ай бұрын
@@yramagicman675 compiler makes sure you've at least thought about it. wait until "if err != nil{ return err }" becomes muscle memory and now you not thinking about errors again. Now the only benefit that it's easier to spot where your system can fail. But I prefer the Nim's way of doing it. In Nim you have exceptions + effect system: you can annotate critical parts of your system with `raises: []` pragma and now you are required to handle all exceptions that could be thrown or it won't compile. It gives agency to the developer, while offloading most work to compiler and also not polluting your code with meaningless noise.
@yramagicman675
@yramagicman675 3 ай бұрын
@@dolorsitametblue that's a great way to do it. I'm sure veteran go devs have a hot key in their editor so 1 or 2 keystrokes expand to the if err == nil block. That's what I would do if I worked with go every day
@acommoncommenter9364
@acommoncommenter9364 3 ай бұрын
​​@@yramagicman675It's my first time hearing about Go error handling so forgive my ignorance. Then go error handling is just java error handling but with return values instead of exceptions is it?
@yramagicman675
@yramagicman675 3 ай бұрын
@@acommoncommenter9364 I've spent probably 6 hours working in Java in the worst possible code. I can't verify this theory. Maybe someone else can corroborate you theory.
@sammo7877
@sammo7877 3 ай бұрын
Nginx streams 0.1 🎉
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 3 ай бұрын
Where is SSL?
@kiratornator
@kiratornator 3 ай бұрын
So reverse proxy is a multiplexer?
@Shenepoy
@Shenepoy 3 ай бұрын
this is not reverse proxy this an Orchestrator
@acommoncommenter9364
@acommoncommenter9364 3 ай бұрын
No, the middleman still acts like the client against the server. In other words, server isn't aware the connection is with a middleman, it acts as if its the client. That makes it a reverse proxy. But it sounds weird calling it that because reverse proxies are just mostly used as institutional packet interceptors.
@ryanrobbins3846
@ryanrobbins3846 3 ай бұрын
🔥
@FunkyELF
@FunkyELF 3 ай бұрын
Why be a persistent man in the middle? Once everything is good to go why not just tell the client how to talk to the server directly?
@lildarker4044
@lildarker4044 3 ай бұрын
noice! bravo articulating before you lose your ma'bles! i have a question... how long can a 'connection' persist? i have kinda similar solution with reservation for 3000 individual conns. its' footprint is tiny(RAM and CPU) with multiple auth layers. notably one 'app' runtime has lasted 2,888 days, others 400+ etc. each app is written in about 80% python and 20% native(OS). for your consideration; my solution also employs certs, and i have found when they update(periodically as they do, for me 90 days i think) i lose context i maybe in a position to address this 'issue' at some point being busy the now, i am thinking of re-contextualizing certs in the app(maintaining uptime) or more simpler just restart(which may bruise my uptime ego)
@mattymerr701
@mattymerr701 3 ай бұрын
Up time should be measured in time between you needing to take action, not how long the program itself has been running. If your app goes down for half a second and restarts straight back up with no intervention, is it really down?
@lildarker4044
@lildarker4044 3 ай бұрын
@@mattymerr701 exactly, its been years, literally years since i had to take action on these deployments.
@zacharysnyder3905
@zacharysnyder3905 2 ай бұрын
What programming language is he using?
@snaileny
@snaileny Ай бұрын
Go
@philadams9254
@philadams9254 3 ай бұрын
Spoiler: no
@lefeyyy
@lefeyyy 3 ай бұрын
abraço do Brasil : )
@f.reaky_carlos
@f.reaky_carlos 3 ай бұрын
quickie😁
@Tony-dp1rl
@Tony-dp1rl 3 ай бұрын
if err != nil if err != nil if err != nil if err != nil ... I now know Golang!!! :)
@danser_theplayer01
@danser_theplayer01 3 ай бұрын
I don't get it. From what I've learned a reverse proxy is just a proxy but for the servers, and it usually exists to distribute loads in a sophisticated way and cache data and prevent attacks. So supposedly if you know how to write a proxy you know exactly how to write a reverse proxy as well. Not to be confused with a software "proxy" equivalents that just balance a single server, maybe spin up some worker threads.
@youtubeuser98
@youtubeuser98 3 ай бұрын
warded
@viraptorify
@viraptorify 3 ай бұрын
Yeah, that's about right. Proxy is a proxy is a proxy. The reverse part just says where it lives / who owns it.
@MrHaggyy
@MrHaggyy 3 ай бұрын
Yes and no. The forward proxy usually only maps one respond to one requests.I A reverse proxy can become a more complex assembler, when you do scheduling tasks to achieve load balancing, or you litterally need to assemble the final response from multiple sources. But simpler is usually better.
@viraptorify
@viraptorify 3 ай бұрын
​@@MrHaggyywhen you're making multiple requests based on the one from the client, that's just a small service not a proxy.
@viraptorify
@viraptorify 3 ай бұрын
​@@MrHaggyywhen you're making multiple requests based on the one from the client, that's just a small service not a proxy.
@ettyxcbyrcburcbtxcfhcdtyurt
@ettyxcbyrcburcbtxcfhcdtyurt 3 ай бұрын
mid
@abdullahshoaib4825
@abdullahshoaib4825 3 ай бұрын
lessgo
@marcola80
@marcola80 3 ай бұрын
1 minute and just 39 views? bro really fell off.
@Sommyie
@Sommyie 3 ай бұрын
🤣🤣🤣 Ikr?
@saymehname
@saymehname 3 ай бұрын
Le zoomer comment
@epicmetod
@epicmetod 3 ай бұрын
@@saymehname no shit sherlock
@colinstu
@colinstu 3 ай бұрын
@@saymehname seriously imagine thinking saying that is funny
@ettyxcbyrcburcbtxcfhcdtyurt
@ettyxcbyrcburcbtxcfhcdtyurt 3 ай бұрын
still mid
@hyperprotagonist
@hyperprotagonist 3 ай бұрын
First 🎉
Life As An Oracle DB Dev - 25 Million Lines Of Code
13:47
ThePrimeTime
Рет қаралды 234 М.
Interview With Sr Rust Developer | Prime Reacts
15:01
ThePrimeTime
Рет қаралды 646 М.
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
Nginx vs Traefik Performance (Reverse Proxy)
13:18
Anton Putra
Рет қаралды 32 М.
i created my own protocol for my games...
12:06
ThePrimeTime
Рет қаралды 67 М.
NVIDIA CEO Jensen Huang's Vision for the Future
1:03:03
Cleo Abram
Рет қаралды 443 М.
Proxy vs Reverse Proxy Explained
8:05
PowerCert Animated Videos
Рет қаралды 397 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 330 М.
How do hackers hide themselves? - staying anonymous online
11:55
Grant Collins
Рет қаралды 1,5 МЛН
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 171 М.
I Think I Love Deepseek R1
13:26
ThePrimeTime
Рет қаралды 450 М.
SWE Stop Learning - The Rise Of Expert Beginners
49:09
ThePrimeTime
Рет қаралды 349 М.
Proxy vs Reverse Proxy Server Explained
14:18
Hussein Nasser
Рет қаралды 136 М.