A
A
AquaForm2020-09-12 14:06:32
JavaScript
AquaForm, 2020-09-12 14:06:32

What solutions (best practice) exist for caching data received from external APIs?

The organization has an API, which is provided by standard 1C tools. A web application is being written that will use data from the 1c database using this API. I wrote asynchronous JS functions that provide data to the web client in a convenient form (JSON), but there is one BUT. Some API requests take 10-20-30 seconds, which is not very pleasant for application users. The data in the database does not change often (two or three times a day), and therefore I want to make some kind of solution that will speed up the user's work.

So I think that it is necessary to deploy an intermediate database on the server and implement periodic data synchronization between the 1C API and the database.

What is the best solution for such a task? Maybe there are already proven technologies and best practice?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_, 2020-09-12
@AquaForm

It looks like in your case it is worth making an intermediate service that will periodically take data from the 1s API and store it in the database / radish / etc and provide the API for the front.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question