A simple web pattern for polling an endpoint