The routing service on project-osrm.org is only a demo service meant to showcase the capabilities of the router. It’s usage policy does forbid heavy usage. An app, where every single user calls the service every 3-5 seconds, falls under very heavy usage.

You can run your own OSRM server. The software is open source. There are also various commercial providers, who can provide an API service.