GitCC AI驱动开源 项目查询 开源项目分类 机器人 人工智能 大模型排行 企业应用 科学研究 孵化优质开源项目 GCC API 海外版AI Coding
 * Allow environment variable configuration of batch size and interval.
     The following environment variables can be set to configure the batch trigger interval and batch size.
     The environment variable PCS_DEFAULT_PUBLISH_JOB_BATCH_INTERVAL can be set as milliseconds from 100 to 3,600,000 ms.  Other values (e.g. <= 0) will result in the default value of 10,000 ms (10 seconds).
     The environment variable PCS_DEFAULT_PUBLISH_JOB_BATCH_SIZE can be set as a value between 2 and 1000.   Every other value will result in the default of 50 subscription notifications per batch being set.
     The environment variables must be set on the Publisher container Pod to affect the settings in all job configurations from this point on that are performed using the Publisher REST API.  (iot/opc-publisher-service).
     The change is in the PublisherJobService Adapter, which adapts from 2.7 REST API to internal Publisher configuration API.  The engine configuration that had hardcoded settings in them in 2.7 release will be updated to read both values out of the environment and set them in the configuration.
 * Use foreach to send messages vs bulk to send batches as bulk can cause errors when combined is greater than 256k
 * Robustness for batching logic