The invention discloses a
business data caching and reporting method suitable for an
internet of things remote terminal, which comprises the following steps of: constructing a persistent cache architecture and initializing: adopting local file mapping as a cache carrier to realize data persistence; circular caching and data adding: managing a plurality of service cache blocks by adopting a circular
queue; multi-concurrent sending
queue and service routing: designing a multi-concurrent sending
queue adaptive to the bandwidth and the
processing capability of
the Internet of Things terminal, and adaptively selecting a reporting channel according to the service
data type; timed scheduling and dynamic
timeout processing: realizing real-time maintenance of a sending queue through a timed
polling and dynamic
timeout mechanism; dual-mode data deletion and cache self-arrangement: realizing automatic arrangement of cache blocks through two deletion
modes of temporary
recovery and thorough deletion, and hierarchical
concurrency control: adopting hierarchical control of a
mutual exclusion lock and a read-write lock to distinguish write operation and read operation; the problems of cache
data loss, low sending efficiency, resource competition and the like after the terminal is powered off and restarted are solved.