Self-defined dispatcher for cloud platform