This application relates to the field of business support, providing a call detail
record (CDR) billing method, apparatus, electronic device, and storage medium. It includes: obtaining CDRs to be processed from a
data source or
middleware based on an integrated mode component, wherein the
middleware includes one or more of message queues, databases, and file systems; and performing streaming
processing on the CDRs to be processed to obtain target CDRs. This application interfaces with various
middleware such as data sources, message queues, databases, and file systems through an integrated mode component, enabling the acquisition and streaming
processing of CDRs to be processed from data sources or middleware. Because it interfaces with multiple external middleware, the streaming billing mode is not limited by message queues, avoiding message loss in the
message queue due to power outages in the
data center, thus improving
processing performance and consequently increasing CDR billing efficiency.