Register!
Want to try Twayis? Create an account!
#{form @twayis.Application.register() }
#{/form}
Already registered? Login here
Hello! Twayis is Java port of
Retwis, a
Twitter clone used as a demo for the
Redis key-value database.
Twayis uses the
Play! as a web framework.
This version of Twayis was adapted for the heroku platform.
Key points:
- Redis is a key-value DB, and it is the only DB used by this application, no MySQL or alike at all.
- This application can scale horizontally since there is no point where the whole dataset is needed at the same point. With consistent hashing (not implemented in the demo to make it simpler) different keys can be stored in different servers.
- Twayis uses many features of the Play! framework, includining Ajax, complex routing, Extensions, Dependency Injection via Guice etc.
- Java and the Redis server communicate using the Jedis library client written by xetorthio
(the original application uses the JRedis library client written by n o ' r o o z)
Source code:
- Original source code of this application is available here.
- Adapted source code of the heroku application is available here.