Abstract:In the electricity marketing business, electricity tariffs are the core of business development. As the real-time data requirements continue to increase, the pressure on cloud master stations for electricity tariff calculation services is increasing due to the increase in the amount of data. The timeliness of electricity tar-iff data provided by the system is generally low. In order to solve this problem, this paper proposes a research on the real-time calculation system of electricity charges based on edge computing technology. The more mature EdgeX Foundry framework was selected as the edge computing gateway. The low-occupancy and lightweight MQTT protocol was used as the secure cooperative transmission and control protocol. The indirect access method was selected as the device integrated access technology. Corresponding real -time computing services based on the three goals of the edge computing gateway’s data collection capabilities, data aggregation computing capabilities and early-warning capabilities were developed and deployed. Finally, the results of simulation experiments verify the advancement and effectiveness of the real-time electricity tariff system based on edge computing technology.