---
title: "Dispatcher API"
url: https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatcher-api
language: python
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Dispatcher API

Programming language: Python. Other languages: [C++](https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatcher-api/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatcher-api/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatcher-api/java.md), [JavaScript](https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatcher-api/js.md), [Swift](https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatcher-api/swift.md).

A *dispatcher* accepts an incoming request and returns an outgoing response. Servants, [middleware](https://docs.zeroc.com/ice/3.8/runtime/dispatch/middleware.md) and the [dispatch pipeline](https://docs.zeroc.com/ice/3.8/runtime/dispatch/dispatch-pipeline.md) of an object adapter are dispatchers.

Ice for Python has no dispatcher API: the only dispatchers you can implement are servants.

## Servants

A *servant* is a dispatcher that handles requests itself, rather than passing them to another dispatcher. A servant usually implements a skeleton that the Slice compiler generates for a Slice interface. The skeleton dispatches each request: it unmarshals the parameters, calls the method you implement for the operation, and marshals the return value and out parameters into the response. It also implements the operations of [Object](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/python.md): `ice_id`, `ice_ids`, `ice_isA` and `ice_ping`.
