in the Gateway approach the application communicates via the MQTT Broker. MQTT uses pub/sub model. So you need to subscribe to a certain topic on the Broker to receive the data from the nodes and publish to a certain topic to send the data toward the Anchors/Tags.
There have been already a couple of topics discussing that, e.g.: