Skip to content

C# client and Lua script combo for storing per-entity logs in Redis

Notifications You must be signed in to change notification settings

jasonholloway/redis-entity-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-entity-logs

C# client and Lua script combo for storing per-entity logs in Redis

REDIS DESIGN

Lua script will take:

  • Key
  • Appendage
  • Last-Known-Length

It will guarantee that:

  • writes only happen if the given Last-Known-Length is correct

C# client will:

  • try to execute script by hash
    • upload script if missing
    • execute script
  • return handle to stream

TESTING:

  • The Lua script will be integrated with the client - ie the client will upload the script
  • So, we can just test the client in its target language, C#
  • But then the tests need some control over Redis, maybe via docker
  • So, C# tests must load dockerized Redis

If an LKL is wrong, then the client must re-read. In the future maybe the server can serve the extra data back, but for now...

About

C# client and Lua script combo for storing per-entity logs in Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages