Sihai network

Alipay Baidu small program API query, the general server can not afford to do?

Recently, there are many popular small programs. Basically, the interfaces are APIs. As everyone knows, many webmasters have access to small programs. After access, the problem is that they can't carry the traffic of 'crawling, grabbing and searching'.

The general configuration of the server, basically difficult to withstand more than 100000 queries.

We can learn from Daniu's ideas

1. The URL is pseudo static

2. Use Alibaba cloud OSS and Baidu cloud BOS as pseudo static storage space. When the spider or user searches, it gets the information from the storage space. When the storage counter 404, the configuration 404 returns to the source server to pull the information. Take Baidu BOS as an example to enable mirror back to source configuration.

3. Configure the life cycle configuration of BOS or OSS to deal with some content that needs to be updated frequently to ensure timeliness.

Advantages: greatly relieve the pressure of the source server

Disadvantages: timeliness content cannot ensure full synchronization unless the format of timeliness content is always different.