# Class ShardBy (1.18.0)

1.18.0 (latest) 1.17.0 1.16.0 1.15.0 1.14.2 1.13.0 1.12.1 1.11.5 1.10.0 1.9.4 1.8.1 1.7.1 1.6.0 1.5.3 1.4.1 1.3.3 1.2.1 1.1.5 1.0.2 0.2.0 0.1.0

    ShardBy(value)

Available sharding mechanisms.

| ## Enums ||
|---|---|
| **Name** | **Description** |
| `UNSPECIFIED` | Diversion method unspecified. |
| `COOKIE` | Diversion based on a specially named cookie, "GOOGAPPUID." The cookie must be set by the application itself or no diversion will occur. |
| `IP` | Diversion based on applying the modulus operation to a fingerprint of the IP address. |
| `RANDOM` | Diversion based on weighted random assignment. An incoming request is randomly routed to a version in the traffic split, with probability proportional to the version's traffic share. |