I am trying to query features using ArcGIS Javascript API 3.x. I learnt that PBF format gives faster response compare to JSON format. However, I cannot specify f=pbf while querying the features (using Query and QueryTask classes). The 3.x API ignores the f=pbf and sends request for f=json. There are few things I have observed as mentioned below.
1) I can get PBF response only with the FeatureServer. I cannot use MapServer. Is this by design?
2) I can get response in PBF if the FeatureServer is published in ArcGIS Online. However, I do not get response in PBF if it is published in ArcGIS Enterprise environment (on-prem). Is the PBF support limited to ArcGIS Online?
3) Is it a good idea to use PBF format to query a million features? Or PBF has some different purpose?
Can anyone share some more insight about the support of PBF format using ArcGIS Javascript API 3.x?