{"id":16893562,"url":"https://github.com/odudek/go-aris","last_synced_at":"2026-05-11T07:19:18.791Z","repository":{"id":212362178,"uuid":"731184655","full_name":"ODudek/go-aris","owner":"ODudek","description":"Simple in-memory database developed in Go, compatible with the Redis protocol. It offers similar functionalities to Redis, allowing easy integration into applications requiring efficient in-memory data handling.","archived":false,"fork":false,"pushed_at":"2025-08-27T10:16:53.000Z","size":58,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-06T13:56:18.500Z","etag":null,"topics":["database","db","golang","in-memory","inmemory"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ODudek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-13T14:30:34.000Z","updated_at":"2025-08-23T19:14:15.000Z","dependencies_parsed_at":"2023-12-13T22:07:38.259Z","dependency_job_id":"76e2ae7d-cb7a-4e24-b0b2-60206339b1f5","html_url":"https://github.com/ODudek/go-aris","commit_stats":null,"previous_names":["odudek/go-aris"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ODudek/go-aris","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ODudek%2Fgo-aris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ODudek%2Fgo-aris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ODudek%2Fgo-aris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ODudek%2Fgo-aris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ODudek","download_url":"https://codeload.github.com/ODudek/go-aris/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ODudek%2Fgo-aris/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274045975,"owners_count":25212978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","db","golang","in-memory","inmemory"],"created_at":"2024-10-13T17:15:39.044Z","updated_at":"2026-05-11T07:19:17.777Z","avatar_url":"https://github.com/ODudek.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aris\n\n![Go](https://github.com/ODudek/go-aris/workflows/Go/badge.svg)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ODudek/go-aris)](https://goreportcard.com/report/github.com/ODudek/go-aris)\n\nAris is a simple in-memory database fully compatible with the Redis protocol, written in Go. It implements the Redis Serialization Protocol (RESP) for client-server communication.\n\n## Features\n\n- ✅ RESP (Redis Serialization Protocol) parsing\n- ✅ High-performance gnet-based server\n- ✅ Standard Go net server fallback\n- ✅ Redis commands: SET, GET, PING, HSET, HGET, HGETALL\n- ✅ Thread-safe in-memory storage\n- ✅ Concurrent client connections\n- 🔲 Data persistence\n- 🔲 Additional Redis commands\n- 🔲 Pub/Sub support\n\n## Quick Start\n\n### Installation\n\n```bash\ngit clone https://github.com/ODudek/go-aris.git\ncd go-aris\ngo build .\n```\n\n### Running the Server\n\n#### With gnet (high performance - default)\n```bash\ngo run .\n# or explicitly\ngo run . -gnet=true -port=:8089\n```\n\n#### With standard Go net (fallback)\n```bash\ngo run . -gnet=false -port=:8089\n```\n\nThe server will start on port `8089` and accept Redis-compatible commands.\n\n### Testing with Redis CLI\n\n```bash\nredis-cli -p 8089\n```\n\n## Development\n\n### Prerequisites\n\n- Go 1.20 or higher\n\n### Running Tests\n\n```bash\ngo test ./...\n```\n\n### Building\n\n```bash\ngo build .\n```\n\n## Project Structure\n\n```\n.\n├── main.go           # Application entry point\n├── server/           # Server implementations\n│   ├── handler.go    # Server interface and config\n│   ├── gnet_server.go        # High-performance gnet server\n│   └── standard_server.go    # Standard Go net server\n├── commands/         # Redis command handlers\n│   ├── command.go    # Command interface\n│   ├── parser.go     # Command parsing logic\n│   ├── ping.go       # PING command\n│   ├── set.go        # SET command\n│   ├── get.go        # GET command\n│   ├── hset.go       # HSET command\n│   ├── hget.go       # HGET command\n│   └── hgetall.go    # HGETALL command\n├── storage/          # In-memory storage\n│   └── storage.go    # Thread-safe storage implementation\n└── resp/            # Redis Serialization Protocol\n    ├── reader.go     # RESP message parsing\n    ├── writer.go     # RESP message formatting\n    └── *.go         # RESP data types (str, int, bulk, array, null, err)\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## Performance\n\nAris uses [gnet](https://github.com/panjf2000/gnet) by default for exceptional performance:\n\n- **Event-driven architecture** - No goroutines per connection overhead\n- **Multi-core support** - Scales across CPU cores\n- **Memory efficient** - Lower memory footprint than standard net\n- **High throughput** - Handles thousands of concurrent connections\n\nYou can switch to standard Go net server using `-gnet=false` for compatibility.\n\n## Roadmap\n\n- [x] Implement handlers for SET, GET, PING, HSET, HGET, HGETALL commands\n- [x] Implement thread-safe in-memory storage\n- [x] Support concurrent client connections  \n- [x] High-performance server with gnet\n- [ ] Add data persistence to file\n- [ ] Add more Redis commands (DEL, EXISTS, EXPIRE, etc.)\n- [ ] Add comprehensive test coverage\n- [ ] Add Docker support\n- [ ] Performance benchmarking vs Redis\n- [ ] Pub/Sub support\n- [ ] Clustering support\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodudek%2Fgo-aris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodudek%2Fgo-aris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodudek%2Fgo-aris/lists"}