Skip to content

nickeljew/file-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File-Relay

File-Relay is a caching service for accessing temporary files in a short period by multiple services in internal system. It works like memcached for sharing data to multiple services.

  • Max caching expiration: 10min
  • Designed for small-size files, especially images, typically those sizes from 1KB to 10MB
  • Commands:
    • Storage commands: set, add, replace
    • Retrieval commands: get / gets (But only support one value in a retrieval request)

Code Files Structure

---- main.go : main entry of file-relay server
 |-- filerelay/*.go : codes of file-relay server
 |-- debug/*.go : simple debugging log library
 |-- client/*.go : test client for debugging

TODO

  • Cluster mode
  • Persistence-on-demand: only on demand by client
    • Using plugins to support external persistence, such as Ceph, S3, etc.
    • Support persistence command: persist

License

MIT

About

A file caching service using memcache-like protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published