Search code examples
javaamazon-web-servicesstreamjava-streamamazon-kinesis

How does Amazon Kinesis Stream compare to Java Stream?


I have read up and watch some videos on Kinesis Stream and I kind of understand that it allows for data streaming from applications and real time analytics.

But how does it relates to the Java Stream because I think with API connection or TCP connection, it is possible to recreate Kinesis Stream by using Java Stream right?

What are some of the pros and cons of Kinesis Stream vs Java Stream?


Solution

  • Despite the fact that "Java Streams" and "Kinesis Stream" both use the word "stream", one is not related to the other.

    A "Java Stream" is a data structure (class) in the Java programming language representing a single "stream" of data. That could be a file stream, a network stream, a string stream, etc.

    "Kinesis Streams" is a product name. "Stream" in this case represents an abstract concept of multiple streams of data flowing in from multiple data sources.

    You cannot mimic one of these with the other.

    The closest these two ideas can come is simply that both are "streams of data". Aside from that, don't try to think of one as being related to the other.