DEV Community

loading...

Backend data is really slow returned.

Burak Kucukparmaksiz
Software Engineer
・1 min read

Hi folks,
I am looking for solution to quick returns backend data. I am calling remote.reqiure('....node file path') in react component . This data returns take too much time. How can i handle this issue? Do you have any idea?
Thanks,

Discussion (7)

Collapse
whatthehanan profile image
Hanan Hamza

what's the file size?
If it's a large file I would recommend using a CDN

Collapse
burakkp profile image
Burak Kucukparmaksiz Author

Hi Hanan,

My backend file size 1.3MB this file has a just calculation method. I get that method and apply to my data. I checked Performance screen on Dev-Tools, It takes time this backend connection part. I am using like this remote.require('./backend/backend-native.node').

Collapse
whatthehanan profile image
Hanan Hamza

I think that's just electron then. look at this thread
github.com/electron/electron/issue...

Thread Thread
burakkp profile image
Burak Kucukparmaksiz Author

Thanks Hanan,

I will look this.

Collapse
jamesrweb profile image
James Robb

Can you share your code?

Collapse
burakkp profile image
Burak Kucukparmaksiz Author

Hi James,

I checked Performance screen on Dev-Tools, It takes time this backend connection part. I am using like this remote.require('./backend/backend-native.node'). This part almost takes extra 20ms.

Collapse
jamesrweb profile image
James Robb

I believe you but without seeing the code, I can't help you debug.