Efficient sensor data delivery
A method is provided to enhance efficiency of sensor event data transmission over network. Specifically, a method is described to buffer a set of sensor data, to group one or more of the set of sensor data having a same type for batch processing. The batch processing includes compressing and securing operations on the grouped sensor data and restoring the original message sequence of the grouped sensor data.
1. A method comprising:
identifying a batch of messages, each message of the batch of messages exhibiting a message pattern, the messages including sensor event data;
associating batch metadata with the batch of messages, the batch metadata describing how the batch of messages is formatted;
applying a security operation to the batch of messages to create a set of secured messages;
updating the batch metadata with security operation information; and
associating the updated batch metadata with the set of secured messages.
2. The method of claim 1 , further comprising:
setting a message buffer for receiving a plurality of messages, the message buffer having an adjustable size; and
generating from the plurality of messages the batch of messages exhibiting the message pattern.
3. The method of claim 1 , further comprising:
determining the message pattern;
identifying a set of messages having the message pattern; and
generating the batch of messages from the set of messages.
4. The method of claim 1 , wherein applying the security operation to the batch of messages includes:
replacing a data field and an associated value of messages in the batch of messages with a token to create a set of tokenized messages; and
applying cryptographic operations to the set of tokenized messages.
5. The method of claim 1 , further comprising:
compressing the batch of messages.
6. The method of claim 1 , further comprising:
transmitting the set of secured messages and the updated batch metadata to an application; and
retrieving a message from the set of secured messages and batch metadata corresponding to the message.
7. A computer program product comprising a computer-readable storage medium having a set of instructions stored therein which, when executed by a processor, causes the processor to associate metadata with a set of secured messages by:
identifying a batch of messages, each message of the batch of messages exhibiting a message pattern, the messages including sensor event data;
associating batch metadata with the batch of messages, the batch metadata describing how the batch of messages is formatted;
applying a security operation to the batch of messages to create a set of secured messages;
updating the batch metadata with security operation information; and
associating the updated batch metadata with the set of secured messages.
8. The computer program product of claim 7 , further causing the processor to associate metadata with a set of secured messages by:
setting a message buffer for receiving a plurality of messages, the message buffer having an adjustable size; and
generating from the plurality of messages the batch of messages exhibiting the message pattern.
9. The computer program product of claim 7 , further causing the processor to associate metadata with a set of secured messages by:
determining the message pattern;
identifying a set of messages having the message pattern; and
generating the batch of messages from the set of messages.
10. The computer program product of claim 7 , wherein applying the security operation to the batch of messages includes:
replacing a data field and an associated value of messages in the batch of messages with a token to create a set of tokenized messages; and
applying cryptographic operations to the set of tokenized messages.
11. The computer program product of claim 7 , further causing the processor to associate metadata with a set of secured messages by:
compressing the batch of messages.
12. The computer program product of claim 7 , further causing the processor to associate metadata with a set of secured messages by:
transmitting the set of secured messages and the updated batch metadata to an application; and
retrieving a message from the set of secured messages and batch metadata corresponding to the message.
13. A computer system comprising:
a processor set; and
a computer readable storage medium;
wherein:
the processor set is structured, located, connected, and/or programmed to run program instructions stored on the computer readable storage medium; and
the program instructions which, when executed by the processor set, cause the processor set to associate metadata with a set of secured messages by:
identifying a batch of messages, each message of the batch of messages exhibiting a message pattern, the messages including sensor event data;
associating batch metadata with the batch of messages, the batch metadata describing how the batch of messages is formatted;
applying a security operation to the batch of messages to create a set of secured messages;
updating the batch metadata with security operation information; and
associating the updated batch metadata with the set of secured messages.
14. The computer system of claim 13 , further causing the processor to associate metadata with a set of secured messages by:
setting a message buffer for receiving a plurality of messages, the message buffer having an adjustable size; and
generating from the plurality of messages the batch of messages exhibiting the message pattern.
15. The computer system of claim 13 , further causing the processor to associate metadata with a set of secured messages by:
determining the message pattern;
identifying a set of messages having the message pattern; and
generating the batch of messages from the set of messages.
16. The computer system of claim 13 , wherein applying the security operation to the batch of messages includes:
replacing a data field and an associated value of messages in the batch of messages with a token to create a set of tokenized messages; and
applying cryptographic operations to the set of tokenized messages.
17. The computer system of claim 13 , further causing the processor to associate metadata with a set of secured messages by:
compressing the batch of messages.
18. The computer system of claim 13 , further causing the processor to associate metadata with a set of secured messages by:
transmitting the set of secured messages and the updated batch metadata to an application; and
retrieving a message from the set of secured messages and batch metadata corresponding to the message.