Minimum producer/comsumer api.