We plan to use FreeNAS/TrueNAS API heavily, for which slow api response time is a blocker. Further, with TrueNAS core it is even slower. Simple logs for operations on FreeNAS/TrueNAS are attached. It can be observed, that a share creation/removal takes around 10 seconds on FreeNAS 11.3-U5, and it takes 20+ seconds on TrueNAS core. Even the 10 seconds is too high for such a response.
Please find the results and the simple test script.
Perhaps, some iSCSI endpoints could handle some async flag, when specified, would skip ctld configuration generation. It would be enough to generate configuration after all objects have been created, once per share.
I would like to highlight that even with FreeNAS 11.3-U5 the high response times are still a blocker for us.