Algorithm and pattern thath can be implemented on real web service