Requests are slow while inserting external data via cronjob

Hi @mariusbolik i know about creating custom code in ./controller/ directory, all i can see in documentation is that i can run it with cron job (timer), what i would like is to send command/request from frontend to execute that code.