2 months ago
I have my api running on railway, and my frontend as another service, and for example I just set my backend env var, EMAIL_BASE_URL to be EMAIL_BASE_URL="${{Frontend.RAILWAY_PUBLIC_DOMAIN}}" to save me jobs when i update the domain, but im getting egress warnings, however this var is just like used in the code, is the warning happening just because im using a public reference, or is it warning me that by even doing it this way, ill get extra charges because it has to go look up the var or something?
5 Replies
2 months ago
Egress warnings are for outbound traffic. If you're using this variable to configure communication from one service to another, you should ideally try and use the internal URL as this has no traffic costs.
2 months ago
Variable lookups don't cost you. They're baked into your application when it is deployed.
2 months ago
Okay so its the latter, the UI is just complaining because I am referencing another service, not because the act of doing so will cause egress charges? It just doesnt know either way - so has to warn me?
2 months ago
Yes, it's warning you that traffic through that link will incur egress charges.
2 months ago
great thanks
Status changed to Solved brody • about 2 months ago