Tracking as serverless function

Hello there,

I wonder how complex the pure tracking part of Matomo is, i. e. from the incoming tracking request to everything being saved in the database. Because if this isn’t overly complex, one could think about writing a lightweight serverless function (as in AWS Lambda) that does this part, so that the web backend where people log into to look at shiny graphs doesn’t get as much traffic.

Is this possible? Did anyone try?