Network Egress for Frontend Project
eugenepro2
PROOP

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

eugenepro2
PROOP

a year ago

f0dc3661-8fa0-4604-a9fd-046ca742b889


a year ago

are you connecting to mongodb publicly?


eugenepro2
PROOP

a year ago

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?


eugenepro2
PROOP

a year ago

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?


eugenepro2
PROOP

a year 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)

1328424710475878400


a year ago

is this a CRA or a SSR app?


eugenepro2
PROOP

a year ago

CRA - but with really weird realization.


a year ago

can you explain what you mean?


eugenepro2
PROOP

a year ago

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


eugenepro2
PROOP

a year ago

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?


eugenepro2
PROOP

a year 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.


a year ago

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


eugenepro2
PROOP

a year ago

Client(human) is my blocker 😆


a year ago

oh so not any technical stuff


eugenepro2
PROOP

a year 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


a year ago

that would contribute something to egress


eugenepro2
PROOP

a year ago

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


eugenepro2
PROOP

a year ago

Got it. Thanks!


eugenepro2
PROOP

a year 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

a year ago

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


Loading...