Network Egress for Frontend Project
eugenepro2
PROOP

2 years 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.

Closed

26 Replies

eugenepro2
PROOP

2 years ago

f0dc3661-8fa0-4604-a9fd-046ca742b889


2 years ago

are you connecting to mongodb publicly?


eugenepro2
PROOP

2 years ago

Frontend connected with API on separate server on DigitalOcean. And this API connected with MongoDB.

So, frontend doesnt connected with MongoDB.


2 years ago

Emporium Storefront looks like a fullstack app, yet it does not directly connect to the database, correct?


eugenepro2
PROOP

2 years ago

Yes, that's correct. We have separate API service for that on DigitalOcean (we're trying to move)


2 years ago

does Emporium Storefront conenct to any external services on the backend side of it?


2 years ago

it also looks like that service is handing a boat load of traffic, perhaps you can tweak the cache settings on cloudflare?


eugenepro2
PROOP

2 years ago

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)

1328424710475878450


2 years ago

is this a CRA or a SSR app?


eugenepro2
PROOP

2 years ago

CRA - but with really weird realization.


2 years ago

can you explain what you mean?


eugenepro2
PROOP

2 years ago

So, front has written like CRA, but runs from Server Side.


eugenepro2
PROOP

2 years ago

Right now I see a lot of HTTP requests, but it only call API endpots in separate server(on DigitalOcean)


2 years ago

so Emporium Storefront calls DO server side?


eugenepro2
PROOP

2 years ago

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.


2 years ago

may i ask what blockers you have run into getting your backend running on railway?


eugenepro2
PROOP

2 years ago

Client(human) is my blocker 😆


2 years ago

oh so not any technical stuff


eugenepro2
PROOP

2 years ago

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


2 years ago

that would contribute something to egress


eugenepro2
PROOP

2 years ago

So, network egress is when server do some actions with public network. Am I undertand correct?


2 years ago

yes, any outbound traffic from the server side is egreess, sending html, js, css, calling external apis, etc


eugenepro2
PROOP

2 years ago

Got it. Thanks!


eugenepro2
PROOP

2 years ago

@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?)


eugenepro2
PROOP

2 years ago

Another point: Emporium Storefront generate html and send by each request to user.


2 years ago

it looks like your api is connecting to mongo publicly


Welcome!

Sign in to your Railway account to join the conversation.

Loading...