<p>I currently am doing something like this</p>
<pre><code>watch, err := s.clientset.CoreV1().Pods(&quot;&quot;).Watch(context.TODO(), metav1.ListOptions{
    FieldSelector: fmt.Sprintf(&quot;spec.myfoo=%s&quot;, s.foo),
})

for event := range watch.ResultChan() {
    .......
}
</code></pre>
<p>I am curious if I have something similar in two different go routines will both of the watches get the same events or if both routines might get different events. Based on who got it first?</p>

<p>Watch internally establishes a long poll connection with the API server. After establishing a connection, the API server will send a batch of initial events and any subsequent changes. Once a timeout has occurred, the connection will be dropped.</p>
<p>Since your scenario involves two go routines, we cannot guarantee that both will start executing simultaneously and that both long poll connections will be established simultaneously. Furthermore, the connection may drop at some point.</p>
<p>In a large cluster, pods are constantly being killed and created. Thus, it is certainly possible for two go routines to receive different events.</p>
