API calls very Slow

@maoricio1 what is your server url?

I tested the API - its fast now
but when you use the SDK functions they go via your server, want to check if its high CPU or RAM

My server URL is: https://nuwfehte4yv3.moralishost.com:2053/server

In advance thanks for your help

No worries, keep up the good work.

On my end it is still slow, some requests are even failing.

I am heavily using the call to get the balance of tokens at different block time stamps on different chains.

P.s Its on Ethereum mainnet and Polygon chain…

do you use SDK function or API directly?

thanks we are checking

I am using API directly

calling this multiple times for a single user in the cloud function
const block = await Moralis.Web3API.native.getDateToBlock(dateOptions);

and this
await Moralis.Web3API.account.getTokenBalances(options)

and this is the error:
Error: XMLHttpRequest failed: "Unable to connect to the Parse API"

Same as @Shine still slow, some requests are even failing

Can you try again now?

AWESOME!!, working now, Thanks a lot :slight_smile:

2 Likes

:sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses:

We are scaling like maniacs!!!

2 Likes

You deserve that and more, thanks!!! Best wishes

1 Like

Awesome!

I can even notice some slight speed improvements it seems (35-40% i would say)

I am wondering what did you guys do behind the scenes. Did you drop rabbit mq and switched to Kafka?

2 Likes

Amazing! this issue is fixed now. :slight_smile:

1 Like

it seems that its slow again

how slow, on what chain, what api call?

Its very very slow, about 30 seconds…

Although its not slow every time. More like every second time…

did you try that on a specific chain, or all chains have that delay?

The call is using both eth mainnet and polygon chain