does railway provide A records? CNAME is not compatible with our current setup
vasallius
HOBBYOP

10 months ago

need help in sharding traffic to aws and railway

Closed

76 Replies


vasallius
HOBBYOP

10 months ago

even on enterprise?


vasallius
HOBBYOP

10 months ago

hmmm that makes it very tricky


vasallius
HOBBYOP

10 months ago

to shard traffic


vasallius
HOBBYOP

10 months ago

unfortunate


10 months ago

idk about enterprise tho, i use a pro plan


10 months ago

idk if theyd make exceptions or stuff for enterprise


vasallius
HOBBYOP

10 months ago

1448907839405035603


vasallius
HOBBYOP

10 months ago

route53 is what we use


10 months ago

i think in all of them it asks you to swap to CF


vasallius
HOBBYOP

10 months ago

too risky to do that for us


vasallius
HOBBYOP

10 months ago

thanks for chiming in moe!


10 months ago

i get that, hopefully one of the employees might know something more than we do


10 months ago

<:sadcat3:1268043255153688708>


vasallius
HOBBYOP

10 months ago

appreciate it <:ChromaHandshake:1207743165440983150>


10 months ago

By shard you mean a Load Balancer?


10 months ago

Also, we highly recommend Cloudflare if possible, as it provides DDoS protection.


10 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.


vasallius
HOBBYOP

10 months ago

team is quite apprehensive to do so


vasallius
HOBBYOP

10 months ago

due to latest cloudflare stuff


10 months ago

You have a point there.


vasallius
HOBBYOP

10 months ago

also the risk of having downtime while switching domains


vasallius
HOBBYOP

10 months ago

and we have a lot right now


10 months ago

If you really do not want to depend on Cloudflare then you can use DNS only (Cloudflare won't proxy it)


vasallius
HOBBYOP

10 months ago

im thinking what can be a way forward <:think:1169350591718379670>


10 months ago

That, or use a subdomain.


vasallius
HOBBYOP

10 months ago

walk me through this so current setup is


vasallius
HOBBYOP

10 months ago

subdomain.domain has A and AAAA record pointed to cloudfront (Route 53)


vasallius
HOBBYOP

10 months ago

what i have tried:


vasallius
HOBBYOP

10 months ago

make those records weighted records


vasallius
HOBBYOP

10 months ago

and add A record for railway (ipv4)


vasallius
HOBBYOP

10 months ago

but cert errors occur


10 months ago

CNAME support for subdomains is standard and supported by any registry.


vasallius
HOBBYOP

10 months ago

oh


vasallius
HOBBYOP

10 months ago

so you're telling me i can actually put a cname record for subdomain.domain


10 months ago

subdomain.domain.com - yes


vasallius
HOBBYOP

10 months ago

gotcha, i kept being told it won't work by claude


vasallius
HOBBYOP

10 months ago

but i shall try within the day and report back


vasallius
HOBBYOP

10 months ago

also cool that discord help threads are more responsive than slack HAHAHA


vasallius
HOBBYOP

10 months ago

i will just keep asking here <:salute:998553677432356876>


10 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.


vasallius
HOBBYOP

10 months ago

examples of gaslight

1448922044304457748


10 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.


vasallius
HOBBYOP

10 months ago

hooray discord HAHAHA


10 months ago

It's true, as long as that sentence is in the context of a root domain.


vasallius
HOBBYOP

10 months ago

yeah but here i clearly showed a screenshot of our route53 routes


vasallius
HOBBYOP

10 months ago

showing api2.domain.com


vasallius
HOBBYOP

10 months ago

haha


vasallius
HOBBYOP

10 months ago

anw thanks Brody!


vasallius
HOBBYOP

10 months ago

hope i land this railway migration properly aaaaaaaa


10 months ago

We hope you do too!


vasallius
HOBBYOP

10 months ago

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)


vasallius
HOBBYOP

10 months ago

that's pretty much it right


vasallius
HOBBYOP

10 months ago

okay so it's really not possible though cc @Brody

1448931464468234312


10 months ago

Yeah you can't mix and match, but a CNAME would be supported otherwise.


vasallius
HOBBYOP

10 months ago

what would u suggest to move forward


vasallius
HOBBYOP

10 months ago

because testing safely is really a non negotiable


10 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.


vasallius
HOBBYOP

10 months ago

gotcha


vasallius
HOBBYOP

10 months ago

so hmmm


10 months ago

You may have to move away from a DNS based load balancer


vasallius
HOBBYOP

10 months ago

what are the options


vasallius
HOBBYOP

10 months ago

i was thinking maybe just shard traffic in the caller side (application)


vasallius
HOBBYOP

10 months ago

but that seems very iffy


10 months ago

I am not too familiar with AWS but surely they offer a L7 load balancer that you could do weights with?


vasallius
HOBBYOP

10 months ago

the L7 load balancer


vasallius
HOBBYOP

10 months ago

(ALB)


vasallius
HOBBYOP

10 months ago

only points to aws resources


vasallius
HOBBYOP

10 months ago

so cannot route to external stuff like railway


10 months ago

A really bad workaround but maybe he could use Cloudflare SaaS?


10 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.


10 months ago

Let me confirm if it's possible as I don't remember if Cloudflare SaaS generates a A domain or CNAME domain


vasallius
HOBBYOP

10 months ago

im quite stressed about this but last solution im looking at is


vasallius
HOBBYOP

10 months ago

lambda assosciation in cloudfront at origin request, so can rewrite the host and match railway?


vasallius
HOBBYOP

10 months ago

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


10 months ago

Nevermind, it uses CNAME


Welcome!

Sign in to your Railway account to join the conversation.

Loading...