what is the network metric for?
hello, i'm a gameplay programmer and recently deployed an api to prevent purchase exploits in the game. i'm wondering what the network metric means. if someone could give a brief explanation i would appreciate it.
27 Replies
inbound metrics is how much data is sent over the network to your api ( the data it receives )
if you had an inbound metric of 5 mb at 10 am, then it means at 10 am your api was sent 5 mb of data
the same applies for outbound but outbound is for network activity that gets sent from your api to somewhere else ( the data it sends out )
TLDR:
- inbound: data your server receives
- outbound: data your server sends out
oh okay. thank you. so these are more than reasonable numbers then.
yea for sure, bytes of traffic is pretty much negligible
i'm curious to see how much this will cost me each month. the api is basically aa single interval while there are pending transactions and then i have a for loop going through each pending transaction making a request to another api each second and storing that information. then when i request the information i then cache the pending transaction.
and inbound is totally free, just be careful with outbound.
And outbound is priced at $0.10/GB
when i make a request to another api from within my api is that considered outbound?
The request you made yes, the response no
okay thanks.
for completion sake also like to note this is a graph for all network traffic to and from your app, so things the container os does like sync NTP time counts as traffic too.
but traffic that goes exclusively through the private network is completely unmetered and "free"
to clarify, this means when i make a request to my api which is deployed on railway?
When you use private networking is free
i see.. so this will be accessed through game servers
assuming that isn't private
unless you use the private domain that can only be used by other services in the same project, from within their code, then you would instead be using the public domain
gotchu. yeah i'm using the public right atm
[side question] should i create a token for this? or does that matter.. i was told by someone it's not really important for me to have a token to access this api.
what's the api for?
preventing purchase exploits in a game that's hosted on roblox. this is a donation game. there are a few products players purchase in roblox games. well two really for this type of game, game passes and clothing items. with game passes we have acces to an endpoint that gives us an "updated" value that hold true. anytime a price has changed the updated value will update. however, this is not the case for clothing items for some reason. and we can't check the price in the game because the way roblox handles clothing purchases. it's all done on the client. and we can't jut make requests to check because we will get rate limited (500 per minute). so the api i have set up just makes those checks for me during any pending transactions.
hm!
oh i see, yea an authentication method is probably not required for that
gotchu. do you make games on roblox?
I used to dev on roblox for 5 years, been deving on it since 2018 but I quit the start of this year
I only kept going to have fun with my friends - making games and such
but now I'm mostly focused on web dev instead
oh i see. i've been doing it professional for almost 3 years. am just now making my own games though. im wanting to make games that do well on the platform. the companies i've worked for have made a ton. and some of them don't have any special marketing tactics. just publishing what works.
web dev is cool though. building this api was fun and new. i just don't know how the work opportunities are. i've only ever solved one leet code problem lol.
that's super neat
Web Dev lays the foundation for a lot, even software engineering has ties to web dev since a lot of software nowadays ( like discord ) is webbased anyway so it is compatible on many operating systems
and even if you don't make web based software, your software will still likely make use of web technologies to communicate with the web in some way
probably not too necassery in game dev though since game engines does all the necassery work for you in most cases, but if you're not using a game engine and try going for a framework like love2d instead, you're gonna have to make your own server to allow for multiplayer beyond just peer to peer under the same network
are you pursuing a job or starting your own thing in this?
I'm still a university student, probably gonna find a job and maybe do my own things on the side, not sure tbh
oh gotchu so you just riding the wave for now then. that's chill bro.
yessirr