Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we build a web framework based on kontraktor? #50

Open
cih-y2k opened this issue Aug 6, 2017 · 8 comments
Open

Can we build a web framework based on kontraktor? #50

cih-y2k opened this issue Aug 6, 2017 · 8 comments

Comments

@cih-y2k
Copy link

cih-y2k commented Aug 6, 2017

No description provided.

@RuedigerMoeller
Copy link
Owner

RuedigerMoeller commented Aug 7, 2017

Ofc (who is "we" ;) ). Actually there is already kind of a web framework (SPA focussed). Kontraktor http provides html import/script/css inlining, transpiler support, a browser client lib, ...

While kontraktor http is mostly library style, kontraktor-web provides a minimalistic 'frameworky' webapp support covering fundamentals like session invalidation, server side per session state, session resurrection (important for SPA's). I am in the process of documenting this stuff as I find time ..

@cih-y2k
Copy link
Author

cih-y2k commented Aug 8, 2017

hi @RuedigerMoeller, by "we", I mean anyone who is impressed by the simplicity and the performance of kontraktor and somehow find it useful :). You know, to be used as a web framework for SPA and rich apps, we need more features, right!

@RuedigerMoeller
Copy link
Owner

some stuff is there, but lacks documentation

@cih-y2k
Copy link
Author

cih-y2k commented Aug 8, 2017

yes, I see, I'm trying to figure out what is going on under the hood.

@davidwynter
Copy link

We use it with a React front end and the simplicity of the js4k interface to the server makes life very easy. In the backend the simplicity of setting up Actors means failover was really easy to implement using round robin pools of remote Actors providing services, message timeouts and the heartbeat/pulse pattern. Scaling is also really easy to implement.

@RuedigerMoeller
Copy link
Owner

FYI I ported the webapp basic example to 4.0 + new front end libs yesterday.

1 request, 5.6 kb when running in production mode (everything inlined in index.html)

@cih-y2k
Copy link
Author

cih-y2k commented Aug 11, 2017

@RuedigerMoeller @davidwynter thank you for sharing your usecase, can you give me more details about how to scale out kontraktor backend to clusters in multiple machine setup? Thank you!

@RuedigerMoeller
Copy link
Owner

Examples for kontraktor scaleout:
this is the original system kontraktor was developed for:
http://java-is-the-new-c.blogspot.de/2013/12/big-data-reactive-way.html

distributed Lambda execution:
https://www.juptr.io/juptrblogs/a2b6139f-b273-42bd-b533-e4695e27e353.html

sharded NLP + document query
https://www.juptr.io/juptrblogs/c7839e9a-da8b-4a60-bc66-94558c30c4da.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants