glung / redux-java

The java version of Redux : a predictable state container for apps.
https://github.com/jvm-redux/
MIT License
327 stars 20 forks source link

Motivation #20

Open matiwinnetou opened 7 years ago

matiwinnetou commented 7 years ago

What would be a motivation for such project? Which usecase would it address for someone? At the moment I can only think of Android clients that could potentially use this.

Would be nice to see such a motivation statement in readme file with explanation.

Thanks for awesome work.

mitselek commented 6 years ago

Im actually searching for living proof, that redux is applicable to backend development in java. So far this looks to be single (first?) attempt.

I'm not familiar with data structures and scopes in java but i have a feeling, that they are more suitable for redux than javascript.

What are your ideas, why did you started this?

manuel-mauky commented 6 years ago

A good use-case is JavaFX desktop UIs. You can see an example application using this library here: https://github.com/lestard/redux-javafx-devtool/tree/master/example-apps/redux-java

It is part of a Developer-Tool for JavaFX inspired by the redux-dev-tool: https://github.com/lestard/redux-javafx-devtool

othonreyes commented 6 years ago

I think that people, in general, associate redux with react hence some UI app. the way that I see it is that redux is a great implementation of several design patterns/techniques (Command, map-reduce, event-sourcing, factory) to achieve a system that is stateful. When would I use that? Say that you need to implement a stateful backend, like the ones used in online videogames, then you could implement it using the Actor-model paradigm (like the Orleans Actor-model) but you could also do it using redux. It would require something tricky that is keeping the state consistent across the host that execute the reducers (in the backend) but if eventual-consistency is ok for the consumers then it should be doable.

zvk17 commented 5 years ago

I cannot find license anywhere. Can you help me with that?

glung commented 5 years ago

@kidsmart I added a lincense https://github.com/glung/redux-java/commit/a659824bede9577690ec289206cecffbdf89a6f6