2 months ago
need help in sharding traffic to aws and railway
76 Replies
2 months ago
dont believe so, https://docs.railway.com/guides/public-networking
2 months ago
idk about enterprise tho, i use a pro plan
2 months ago
idk if theyd make exceptions or stuff for enterprise
2 months ago
i think in all of them it asks you to swap to CF
2 months ago
i get that, hopefully one of the employees might know something more than we do
2 months ago
<:sadcat3:1268043255153688708>
2 months ago
By shard you mean a Load Balancer?
2 months ago
Also, we highly recommend Cloudflare if possible, as it provides DDoS protection.
2 months ago
Empoeye here. We don't currently offer anything other than CNAMEs, regardless of plans.
We know CNAMEs only can be limiting, and we do want to offer A types at some point in the future, but we do not currently have any plans for that.
So yes, we would highly recommend Cloudflare. They provide a seamless DNS record import, and they provide a WAF and DDoS protection.
2 months ago
You have a point there.
2 months ago
If you really do not want to depend on Cloudflare then you can use DNS only (Cloudflare won't proxy it)
2 months ago
That, or use a subdomain.
2 months ago
CNAME support for subdomains is standard and supported by any registry.
so you're telling me i can actually put a cname record for subdomain.domain
2 months ago
subdomain.domain.com - yes
also cool that discord help threads are more responsive than slack HAHAHA
2 months ago
Oh wow, I am surprised Claude is trying to gaslight you on this topic. CNAMEs for subdomains have always been supported; it's CNAMEs on the apex or root domain that is the issue.
2 months ago
Slack threads are only answered by railway employees who work off a queue in the central station with all other users' threads. On Discord, you get the community, so for anything that the community is able to answer, asking in Discord would definitely get a faster response, for the most part.
2 months ago
It's true, as long as that sentence is in the context of a root domain.
showing api2.domain.com
2 months ago
We hope you do too!
so to clarify
given existing
a and aaaa subdomain pointing to cloudfront (Weighted routing 90)
ill just add
cname record for subdomain pointing to railway (Weighted routing 10)
2 months ago
Yeah you can't mix and match, but a CNAME would be supported otherwise.
2 months ago
Even if route 53 allowed that, it wouldn't work for us to verify your domain, because what are the chances our backend gets a DNS result routed through to Railway, it would likely be routed to your infra and then fail the validation.
2 months ago
You may have to move away from a DNS based load balancer
i was thinking maybe just shard traffic in the caller side (application)
2 months ago
I am not too familiar with AWS but surely they offer a L7 load balancer that you could do weights with?
2 months ago
A really bad workaround but maybe he could use Cloudflare SaaS?
2 months ago
Basically you could create a Cloudflare account, add any domain and then use Cloudflare SaaS to add your domain from Route53
That will require a Cloudflare Pro accont though, and as plus you'll get Cloudflare DDoS protection.
2 months ago
Let me confirm if it's possible as I don't remember if Cloudflare SaaS generates a A domain or CNAME domain
lambda assosciation in cloudfront at origin request, so can rewrite the host and match railway?
and then inside the lambda some random stuff to decide whether or not to go to same origin (the normal alb) or go to railway
2 months ago
Nevermind, it uses CNAME


