According to link, fdb seems to be only initializing metrics
and split
RequestStream in initEndpoints
method, why not init resolve
stream in this method as well? what’s the logic here?
An endpoint is default-initialized when it is serialized for the first time. Or more specifically: FlowReceiver::getEndpoint
will initialize this lazily if it hasn’t before.
The reason we sometimes call initEndpoints
explicitly is because of priority. If not done explicitly, each endpoint will have priority TaskPriority::DefaultEndpoint
(and for most endpoints this is the correct behavior).