Application Program Interface

Application Program Interface (API) is an intermediary code that allows two applications to talk to each other. This will allow for interaction with the ML code in a server from other networked devices. For this, we have to write a wrapper application around our ML code, which will unpack the arguments from a request header, process it and return a response in accordance to some network protocol.

APIs should also allow for getting and updating information from server database.

The requests can either be a single call or a set of repeated calls. Streaming applications would require a continous stream of data to be sent and received. For eg, real time object detection algorithm run on a video may require a sequence of frames to be sent and received every second. Therefore, depending on our use case, we can choose betwwen HTTP and Websocket protocols.

Go back Modules