There is one page with many different AJAX requests. How best to send requests? On separate files? or one, but depending on the data transferred to the server to connect a specific function?

    1 answer 1

    Different files, this is how I understand different servers (in the case of nodeJS).

    I think it depends on the connection of functionality, for example, a basket and a chat on one site should be made different servers, but adding and removing goods, for example in one

    As for resources, then of course two different servers using the same data, this is not desirable.