ksqlDB aggregate step

In KsqlDB, can you explain how KsqlDB process the aggregation steps in background. I’m glad if ypu will kindly provide me some of documents.