a year ago
I've deployed React Frontend application, js files, css, fonts, some images. And I have a lot of Nenwork Egress costs.
I've moved images to CloudFlare R2 and but cost are still big. Can you help me understand it.
26 Replies
a year ago
are you connecting to mongodb publicly?
Frontend connected with API on separate server on DigitalOcean. And this API connected with MongoDB.
So, frontend doesnt connected with MongoDB.
a year ago
Emporium Storefront looks like a fullstack app, yet it does not directly connect to the database, correct?
Yes, that's correct. We have separate API service for that on DigitalOcean (we're trying to move)
a year ago
does Emporium Storefront conenct to any external services on the backend side of it?
a year ago
it also looks like that service is handing a boat load of traffic, perhaps you can tweak the cache settings on cloudflare?
So, that's a Web Traffic statistic. As I know Emporium Storefront doesn't have any others connection. Only API and some external(google analytic, amplitude, etc)

a year ago
is this a CRA or a SSR app?
a year ago
can you explain what you mean?
Right now I see a lot of HTTP requests, but it only call API endpots in separate server(on DigitalOcean)
a year ago
so Emporium Storefront calls DO server side?
That's good question. I don't know right now. I know that Emporium Storefront calls DO from client side. I should investigate your question.
a year ago
may i ask what blockers you have run into getting your backend running on railway?
a year ago
oh so not any technical stuff
I found. Emporium Storefront do some server calls, but it only login, logout, check pyament. That's all. All other calls to API DO Emporium Storefron do from client side
a year ago
that would contribute something to egress
So, network egress is when server do some actions with public network. Am I undertand correct?
a year ago
yes, any outbound traffic from the server side is egreess, sending html, js, css, calling external apis, etc
@Brody
I've moved API DO to railway and connect Emporium Storefront via private network.
I also logging all reuqest from server to make sure that all request go via private networking.
Hovewer I see a big network egress each minute from 10mb to 300mb.
For comprasion, API Service on railway take max 700kb netowork egress.
Can you help me please?)
Another point: Emporium Storefront generate html and send by each request to user.
a year ago
it looks like your api is connecting to mongo publicly