DNS management in a multi-tenant setup

  Рет қаралды 3,069

Sabatino Talks Dev

Sabatino Talks Dev

Күн бұрын

#laravel #webdevelopment #webdev
DNS management on a larger scale, for example in a multitenant application, can be a a massive pain. In this video we’ll be taking a look at how you can manage hundreds, if not thousands of custom domains for your multi-tenant application, without a headache!
00:00 - Introduction
00:16 - Multitenant DNS management
01:50 - Configuring custom domains
03:08 - Dynamic reverse proxies
06:13 - Final words

Пікірлер: 24
@lucascairesd
@lucascairesd 24 күн бұрын
Very helpful! Thank you! Your content is amazing! You bring us topics that are not often discussed in the Laravel/PHP ecosystem!
@sabatino-dev
@sabatino-dev 24 күн бұрын
Glad it was helpful!
@tschoo6476
@tschoo6476 24 күн бұрын
Good insights, thank you. Love the multi-tenancy/SaaS topics. For my SaaS, I have the clients set up a CNAME to my domain instead of an A record, so I have the IP under control. I add the custom client domain as Alias in Laravel Forge, then re-issue the cert. Let's Encrypt is limited to 100 aliases though, but I'm just starting out, so that's not a problem. Keep up the good work!
@sabatino-dev
@sabatino-dev 24 күн бұрын
Sure, but CNAME doesn’t work for root domains unfortunately, only for subdomains.
@marcsollie2968
@marcsollie2968 14 күн бұрын
@@sabatino-dev Whilst that is true, CNAME flattening has been a thing nowadays with many modern DNS providers, which could make it a better manageable option in many cases.
@overengineeringsimplified
@overengineeringsimplified 24 күн бұрын
Very helpful information ❤ Looking forward to your videos 🎉🎉
@sabatino-dev
@sabatino-dev 24 күн бұрын
Glad you like them!
@himesh_89
@himesh_89 25 күн бұрын
Thank you
@sabatino-dev
@sabatino-dev 25 күн бұрын
You're welcome, hope it was helpful!
@shocchosolutions6275
@shocchosolutions6275 25 күн бұрын
Your applicatiom demo plz​@@sabatino-dev
@rhyzo1
@rhyzo1 22 күн бұрын
Great Video! - I'm currently tackling this problem for laravel multi-tenancy. What do you think about "Cloudflare Custom Hostnames" and then using the "Flexible" SSL Option to eliminate having to create certificates and finally adding an Alias using the laravel forge API.
@sabatino-dev
@sabatino-dev 22 күн бұрын
It’ll probably work, but IMO doing Nginx config work in Forge for every custom domain will bite you in the ass down the line. If you need to scale for example, you’ll be burdened with a massive amount of config changes.
@danygagnon8446
@danygagnon8446 24 күн бұрын
You are so amazing and I am so happy that I pressed the bell on the subscribe. You are a gem seriously, thank you. This is so valuable. Have you ever done database replication for your company?
@sabatino-dev
@sabatino-dev 24 күн бұрын
Thanks for the kind words! 🙏 we do replication on AWS RDS, and AWS DMS has been a massive help to migrate our database to RDS.
@kenlin2135
@kenlin2135 21 күн бұрын
Very helpful!. @sabatino , I was wondering. use ceryx to proxy the requests to target loadbalance. do we need to dynamic add server block on nginx? since the beginning of this videos you said no need to change ngxin config. how does target server's nginx server handle requests with custom domain. ? Updated: after try it out. get error 629 SSL_do_handshake() failed (SSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure) while SSL handshaking to upstream
@sabatino-dev
@sabatino-dev 21 күн бұрын
The target server should handle things automatically, since Ceryx rewrites the host header. No additional Nginx config is needed on the target.
@kenlin2135
@kenlin2135 21 күн бұрын
@@sabatino-dev thanks. I try Traefik Yesterday, also works did learn something.
@kenlin2135
@kenlin2135 18 күн бұрын
@@sabatino-dev I did solve the redirect issue. for everybody. just make sure laravel application should trust the proxy in the middleware. This make it works. thanks buddy, This way is more easy maintanable.
@sabatino-dev
@sabatino-dev 18 күн бұрын
@kenlin2135 nice!
@krystianh4384
@krystianh4384 24 күн бұрын
Very interesting content, thank you! Could you share your practices on handling tenant/user ids?
@vitorlfelix
@vitorlfelix 23 күн бұрын
If I’m not mistaken he has a video with this content.
@sabatino-dev
@sabatino-dev 21 күн бұрын
This video covers it: Learnings from our multi-tenant Laravel application kzbin.info/www/bejne/gp7SoZhreMmAZ5I
@yoskokleng3658
@yoskokleng3658 22 күн бұрын
for sub domain of each users. did u use wildcard domain name?
@sabatino-dev
@sabatino-dev 22 күн бұрын
Yes, wildcard subdomain DNS record!
From web to Electron - lessons learned
5:55
Sabatino Talks Dev
Рет қаралды 439
Scaling our Laravel app, after a flash sale took down our MySQL database
6:23
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 44 МЛН
How many pencils can hold me up?
00:40
A4
Рет қаралды 18 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 9 МЛН
How to Reduce Plugins Reliance in WordPress (MUST KNOW)
5:06
Proxy vs Reverse Proxy (Real-world Examples)
5:17
ByteByteGo
Рет қаралды 503 М.
Top 5 Most-Used Deployment Strategies
10:00
ByteByteGo
Рет қаралды 237 М.
Reverse Proxy vs API Gateway vs Load Balancer
3:06
ByteByteGo
Рет қаралды 96 М.
Eloquent where(): 6 "Tricks" You May Not Know
5:44
Laravel Daily
Рет қаралды 9 М.
SVG ForeignObject saved us over €2,400 yearly!
6:15
Sabatino Talks Dev
Рет қаралды 1,2 М.
Updated Blank/Filled Helper, Validate Arrays & JSON Overlaps
5:00
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 44 МЛН