Giter Site home page Giter Site logo

sumbang / non-heap-video-streaming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from klaudiuszwojtkowiak/non-heap-video-streaming

0.0 0.0 0.0 21 KB

Non Heap memory used a s storage for video streaming.

License: Apache License 2.0

JavaScript 14.13% Java 70.68% CSS 0.62% HTML 14.56%

non-heap-video-streaming's Introduction

non-heap-video-streaming

Non Heap memory used as a storage for video streaming. This program has been created as my input to the DAC.digital technological blog: https://dac.digital/netflix-on-java-a-non-heap-application-for-video-streaming/

#How to run? A few ways:

  1. run VideoStreamingApplication class (a main method).
  2. Application will start at port 9000
  3. Visit your localhost http://localhost:9000/

#Working with the application You may upload and play a mp4 movie. The video data will be places into Non-Heap memory, so it won't bother the JVM GC. There is an internal scheduler which prints the memory usage both Heap and Non-Heap For the testing purposes there is System.gc() used after each upload.

#Author [email protected]

The ByteBufferBackedInputStream class taken from: https://stackoverflow.com/questions/4332264/wrapping-a-bytebuffer-with-an-inputstream/34173251#34173251

non-heap-video-streaming's People

Contributors

jpodeszwik avatar klaudiuszwojtkowiak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.