softindex / datakernel

Alternative Java platform, built from the ground up - with its own async I/O core and DI. Ultra high-performance, simple and minimalistic - redefines server-side programming, web-development and highload!
https://datakernel.io
Apache License 2.0
100 stars 16 forks source link

Web RPC, Datastreams & Data Channels With JS Client #22

Open sirinath opened 4 years ago

sirinath commented 4 years ago

Can we have JS Client which can be on the browser which can communicate with the server using a higher abstraction like RPC, Datastreams and/or Data Channels?

This can perhaps just providing a JS implementation of:

JS implementation will be to use it from the web.

JS side can also have DI implementation.

eduard-vasinskyi commented 4 years ago

Hello, @sirinath We currently have no plans of porting our components to JS. Some components are tightly coupled with JVM and it would not be possible to port them. While other components theoretically can be ported to JS, they would probably lack a performance provided by JVM. As for Dataflow and RPC clients, they use TCP for exchanging messaging with servers. And unfortunately, you cannot exchange raw TCP messages directly from the browser right now. You would need some kind of proxy for that.

sirinath commented 4 years ago

I guess the problem is client-server communication which is very limited. I guess this can be rectified by implementing some of the standards on the server side like:

This way existing JS libraries can be used on the client-side/frontend-side.

sirinath commented 4 years ago

Most important would be along with Ajax are: