How are background workers generally implemented to query a queue of messages?

Suppose you have a queue of messages to poll every x seconds. What are the usual ways to query and run HTTP / Rest jobs? Are you just creating a cron service and are you calling the worker script every x seconds?