R
Railway•2mo ago
Celengan Babi

Shared Volume

Is it possible to have to share a volume to more than 1 services on Railway? If not, what would be the alternatives? I have a use-case that needs to share a volume among different services. I would prefer to use internal volume to avoid egress costs. Thanks!
Solution:
railway does not support shared volumes yet, the alternative would be to deploy minio into the project and use an S3 client in the various services that need access to the data
Jump to solution
7 Replies
Percy
Percy•2mo ago
Project ID: N/A
Solution
Brody
Brody•2mo ago
railway does not support shared volumes yet, the alternative would be to deploy minio into the project and use an S3 client in the various services that need access to the data
Celengan Babi
Celengan Babi•2mo ago
if the data is stored in R2/S3, wouldn't it impose egress cost to the user? since the data needs to be downloaded first externally
Brody
Brody•2mo ago
I had mentioned MinIO, I'm not sure how your users would end up paying egress? you would pay the egress though I feel like I'm missing a whole lot of context here, please fill me in
Celengan Babi
Celengan Babi•2mo ago
maybe I misunderstood something, but from what I thought (I could be wrong about this), if I use S3 client, wouldn't it mean that my services would have to fetch the data from that S3 instance and then the data would then be relayed to the users? This will double the egress cost as my services has to access the data on S3 first before relaying it to the users? CMIIW
Brody
Brody•2mo ago
there are no egress fees for service to service communication via the private network
Celengan Babi
Celengan Babi•2mo ago
I see, thank you I will look it up 🫡