mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
617c8c787d
Unified User Action (UUA) is a centralized, real-time stream of user actions on Twitter, consumed by various product, ML, and marketing teams. UUA makes sure all internal teams consume the uniformed user actions data in an accurate and fast way.
25 lines
739 B
Scala
25 lines
739 B
Scala
package com.twitter.unified_user_actions.client.config
|
|
|
|
sealed trait ClusterConfig {
|
|
val name: String
|
|
val environment: EnvironmentConfig
|
|
}
|
|
|
|
object Clusters {
|
|
/*
|
|
* Our production cluster for external consumption. Our SLAs are enforced.
|
|
*/
|
|
case object ProdCluster extends ClusterConfig {
|
|
override val name: String = Constants.UuaKafkaProdClusterName
|
|
override val environment: EnvironmentConfig = Environments.Prod
|
|
}
|
|
|
|
/*
|
|
* Our staging cluster for external development and pre-releases. No SLAs are enforced.
|
|
*/
|
|
case object StagingCluster extends ClusterConfig {
|
|
override val name: String = Constants.UuaKafkaStagingClusterName
|
|
override val environment: EnvironmentConfig = Environments.Staging
|
|
}
|
|
}
|