Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Easydarwin | 5,764 | 4 months ago | 124 | Go | ||||||
open source、high performance、industrial rtsp streaming server,a lot of optimization on streaming relay,KeyFrame cache,RESTful,and web management,also EasyDarwin support distributed load balancing,a simple streaming media cloud platform architecture.高性能开源RTSP流媒体服务器,基于go语言研发,维护和优化:RTSP推模式转发、RTSP拉模式转发、录像、检索、回放、关键帧缓存、秒开画面、RESTful接口、WEB后台管理、分布式负载均衡,基于EasyDarwin构建出了一套基础的流媒体云视频平台架构! | ||||||||||
Smart_open | 2,803 | 320 | 156 | 12 days ago | 54 | April 24, 2022 | 77 | mit | Python | |
Utils for streaming large files (S3, HDFS, gzip, bz2...) | ||||||||||
Sockjs Node | 2,054 | 301,577 | 451 | 20 days ago | 36 | December 03, 2021 | 21 | mit | JavaScript | |
WebSocket emulation - Node.js server | ||||||||||
Duplex | 359 | 3 years ago | 1 | December 01, 2016 | 7 | mit | Python | |||
Full duplex modern RPC | ||||||||||
Rtptools | 114 | 6 months ago | 14 | other | C | |||||
RTP Tools | ||||||||||
Hydra | 81 | 2 months ago | 4 | apache-2.0 | Scala | |||||
A real-time data replication platform that "unbundles" the receiving, transforming, and transport of data streams. | ||||||||||
Download Hls | 61 | 10 years ago | gpl-3.0 | Java | ||||||
Downloads, decrypts, and optionally joins HTTP Live Streaming (HLS) transport streams. | ||||||||||
Srtdroid | 53 | 3 days ago | 1 | April 01, 2022 | apache-2.0 | Kotlin | ||||
Secure Reliable Transport (SRT) Protocol for Android | ||||||||||
Mpeg2ts | 49 | 6 months ago | 8 | other | C++ | |||||
A fast, cross-platform and modern C++ SDK for all your MPEG-2 transport stream media format needs following international specification ISO/IEC 13818-1. | ||||||||||
Lightstep Tracer Cpp | 39 | 7 months ago | 3 | mit | C++ | |||||
The Lightstep distributed tracing library for C++ |
The Hydra platform provides a streamlined data streaming experience by abstracting away the underlying implementation, instead providing users a simple REST API.
A set of common util-based classes meant to be shared across the entire Hydra ecosystem, including hydra-spark and dispatch modules.
Core, shared traits and classes that define both the ingestion and transport protocols in Hydra. This module is a dependency to any ingestor or transport implementation.
This also includes Avro schema resolution, validation, and management.
The ingestion implementation, including HTTP endpoints, actors, communication protocols, registration of ingestors, and a lot of other stuff.
A Transport implementation that replicates messages into Kafka.
Hydra is built using SBT. To build Hydra, run:
sbt clean compile
This documentation walks through setting up the core basic components of Hydra.
docker-machine create --driver virtualbox --virtualbox-memory 6000 hydra
docker-machine env hydra
docker network create hydra
Hydra uses Zookeeper as a coordination service to automate bootstrapping and joining a cluster.
It is also used by Kafka and the Schema Registry.
Since all services depend on Zookeeper being up, so we will start that first. It is not always needed to do this, but doing so avoids race conditions tht may happen across the different containers.
docker-compose up -d zookeeper
docker-compose up hydra
You can also start each service separately.
That should do it!
You can test Hydra has started by going to this resource:
http://localhost:8088/health
You should see something like:
{
"BuildInfo": {
"builtAtMillis": "1639518050466",
"name": "hydra-ingest",
"scalaVersion": "2.12.11",
"version": "0.11.3.979",
"sbtVersion": "1.3.13",
"builtAtString": "2021-12-14 21:40:50.466"
},
"ConsumerGroupisActive": {
"ConsumerGroupName": "v2MetadataConsumer",
"State": true
}
}
Path | HTTP Method | Description |
---|---|---|
/health | GET | A summary overview of the overall health of the system. Includes health checks for Kafka. |
/metrics | GET | A collection of JVM-related memory and thread management metrics, including deadlocked threads, garbage collection run times, etc. |
Path | HTTP Method | Description |
---|---|---|
/schemas | GET | Returns a list of all schemas managed by Hydra. |
/schemas/[NAME] | GET | Returns information for the latest version of a schema. |
/schemas/[NAME]?schema | GET | Returns only the JSON for the latest schema. |
/schemas/[NAME]/versions/ | GET | Returns all versions for a schema. |
/schemas/[NAME/versions/[VERSION] | GET | Returns metadata for a specific version of a schema |
/schemas | POST | Registers a new schema with the registry. Use this for both new and existing schemas; for existing schemas, compatibility will be checked prior to registration. |
Path | HTTP Method | Description |
---|---|---|
/v2/topics | GET | A list of all the registered topics currently managed by Hydra. |
/v2/topics/[NAME] | GET | Get the current schema for requested topic. |
/v2/topics/[NAME] | POST | Create or update custom topics. Also registers key and value schemas in Schema Registry if applicable. |
/v2/topics/[NAME] | DELETE | Delete topics. Requires authentication. |
Path | HTTP Method | Description |
---|---|---|
/v2/topics/[NAME]/records | POST | Creates a new record in the specified topic. |
"If you want to make a Kafka topic from scratch, you must first invent the universe." -Carl Sagan
We are using this topic to test:
{
"streamType": "Entity",
"deprecated": false,
"dataClassification": "InternalUseOnly",
"contact": {
"email": "[email protected]"
},
"createdDate": "2022-01-25T12:00:00Z",
"notes": "Here are some notes.",
"parentSubjects": [],
"teamName": "team-john-doe",
"schemas": {
"key": {
"type": "record",
"name": "key",
"namespace": "",
"fields": [
{
"name": "id",
"type": {
"type":"string",
"logicalType":"uuid"
},
"doc":"This is a doc field."
}
]
},
"value": {
"type": "record",
"name": "val",
"namespace": "dvs.data_platform.dvs_sandbox",
"fields": [
{
"name": "myValue",
"type": "string",
"doc":"It is my value."
}
]
}
}
}
curl -X POST localhost:8088/topics/tech.my-first-topic -d '{
"streamType": "Entity",
"deprecated": false,
"dataClassification": "InternalUseOnly",
"contact": {
"email": "[email protected]"
},
"createdDate": "2022-01-25T12:00:00Z",
"notes": "Here are some notes.",
"parentSubjects": [],
"teamName": "team-john-doe",
"schemas": {
"key": {
"type": "record",
"name": "Test2",
"namespace": "",
"fields": [
{
"name": "id",
"type": {
"type":"string",
"logicalType":"uuid"
},
"doc":"This is a doc field."
}
]
},
"value": {
"type": "record",
"name": "Test2",
"namespace": "dvs.data_platform.dvs_sandbox",
"fields": [
{
"name": "myValue",
"type": "string",
"doc":"It is my value."
}
]
}
}
}'
You should see something like this:
OK
curl -X POST -d '{"key": {"id":"7db11b7a-4560-4a86-b00b-6f380bfb1564"}, "value":{"myValue":"someValue"}}' -H 'Content-Type: application/json' 'http://localhost:8088/v2/topics/tech.my-first-topic/records'
A sample Hydra response is:
{"offset":0,"partition":6}
Hydra validates payloads against the underlying schema. For instance:
curl -X POST -d '{"key": {"id":"123"}, "value":{"myValue":"someValue"}}' -H 'Content-Type: application/json' 'http://localhost:8088/v2/topics/tech.my-first-topic/records'
Should return:
hydra.avro.convert.StringToGenericRecord$InvalidLogicalTypeError: Invalid logical type.
Expected UUID but received 123
[http://schema-registry:8081/subjects/tech.my-first-topic-key/versions/latest/schema]
##But what about v1?
You may have noticed that the JSON above uses "/v2" endpoints. Most /v2 endpoints have /v1 counterparts, but we highly recommend using /v2 as /v1 endpoints are deprecated. If you need to use "/v1" endpoints, simply remove the "/v2" segment.
We used to highly recommend checking out the project documentation here, but then we forgot about it for two years. We might get around to updating it in the future.
There you can find the "latest"
documentation about the Hydra project, including examples, API endpoints, and a lot more info on how to get started.
This README file only contains basic definitions and set up instructions.
Contributions via Github Pull Request are welcome.
Profiling software provided by
YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.
Try using the gitter chat link above!
Apache 2.0, see LICENSE.md