How ingest-consumer calls worker task preprocess_event

I checked the website of https://getsentry.github.io/event-ingestion-graph/
I want to know exactly what is being done, how it is being called, and whether I can modify this inline call so that the ingest-consumer and worker containers are deployed on different machines and the worker preprocess_event task is triggered over the network.
@BYK

@zeeg