Next.js Discord

Discord Forum

Socket.io or Multithreading

Unanswered
Hackberry nipple gall parasitoid posted this in #help-forum
Open in Discord
Avatar
Hackberry nipple gall parasitoidOP
Hi everone, I'm a jr developer and I create a pages dir nextjs project. To make it faster, I divided my project into components and also used redux. In my project, I read the files uploaded by the user on the frontend and then send them to the API I wrote in nextjs. I create a file with the string expression I sent to the API and write it into it, then I run the GDAL command. Ogr2ogr runs and creates kml file from xml. Then I read the kml file and send a reply and delete both files I created. After reading the file in the frontend, I make changes to the labels and add some information to the entities so that Cesium can detect it better. This process is quite slow for large files and I want to use socket or thread. Which structure is better for Nextjs? Thanks in advance

0 Replies