All Apps and Add-ons

What if there are issues with Splunk MINT REST API?

croyal_splunk
Splunk Employee
Splunk Employee

What if there are issues with MINT REST API ?

What happens if the API REST MINT endpoint is down when a devices is trying to send data? Will the app hang? crash? retry after few seconds without affecting normal app behavior?

What happens if the API REST MINT endpoint answers with HTTP 5XX?

What happens if the API REST MINT takes too much time in their answers?

What are the timeouts defined in the SDK?

Will the API REST MINT crash/block/freeze the app?

0 Karma
1 Solution

croyal_splunk
Splunk Employee
Splunk Employee

What happens if the API REST MINT endpoint is down when a devices is trying to send data? The app will hangs? Crash? Retry after few seconds without affecting normal app behavior?
MINT SDK will write the new data to the disk up to the limit of 420kb (140k x 3 files) and will try to send the data if app restarts, flush() is called or when disk storage limit is reached again.

What happens if the API REST MINT endpoint answers with HTTP 5XX?
In HTTP parlance 5xx considered server side error and MINT SDK will follow the same rules as in the case of MINT backend unavailability.

What happens if the API REST MINT takes too much time in their answers?
MINT SDK network invocation are happening asynchronously with respect to the rest of the app code and shouldn’t block the app. MINT uses 10 sec connection and availability of server response timeout. If the transmission times out it will be considered as server unavailabilty and the logic described in first answer will kick in.

Can in some case the API REST MINT crash/block/freeze the app?
We are making extra effort not to affect the app under any circumstances. SDK are architected and engineered for this. There is small fixed size overhead expected related to the SDK functionality, but it should not affect user experience or app performance in any material way.

View solution in original post

croyal_splunk
Splunk Employee
Splunk Employee

What happens if the API REST MINT endpoint is down when a devices is trying to send data? The app will hangs? Crash? Retry after few seconds without affecting normal app behavior?
MINT SDK will write the new data to the disk up to the limit of 420kb (140k x 3 files) and will try to send the data if app restarts, flush() is called or when disk storage limit is reached again.

What happens if the API REST MINT endpoint answers with HTTP 5XX?
In HTTP parlance 5xx considered server side error and MINT SDK will follow the same rules as in the case of MINT backend unavailability.

What happens if the API REST MINT takes too much time in their answers?
MINT SDK network invocation are happening asynchronously with respect to the rest of the app code and shouldn’t block the app. MINT uses 10 sec connection and availability of server response timeout. If the transmission times out it will be considered as server unavailabilty and the logic described in first answer will kick in.

Can in some case the API REST MINT crash/block/freeze the app?
We are making extra effort not to affect the app under any circumstances. SDK are architected and engineered for this. There is small fixed size overhead expected related to the SDK functionality, but it should not affect user experience or app performance in any material way.

croyal_splunk
Splunk Employee
Splunk Employee
0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...