thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Emmenlauer (Jira)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-4978) Kindly add an example how to use javascript binary protocol in the browser
Date Tue, 15 Oct 2019 14:30:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mario Emmenlauer updated THRIFT-4978:
-------------------------------------
    Description: 
I've spent many days researching about how to use thrift binary protocol in the webbrowser,
so far with no clear result. There are many references across the internet but they do not
form a full picture.

According to my findings, the binary protocol works in nodejs, and supposedly nodejs-thrift
is also in other aspects "superior" to plain Javascript. But I can not really put my finger
on any details. Furthermore it seems that nodejs can be used in the browser via browserify,
and there are some thrift issues and commits that indicate that people have used this in the
past.

However I completely fail to see how this works. I can generate thrift js bindings but then
I do not know where to go from there.

It would be really awesome if someone can extend the thrift documentation with a full example
of such a use case. Starting for example from the nodejs docs, how can thrift be used in a
webbrowser to connect to a nodejs/Java/Python/C++/... server?

My full user story is:
 * A c++ thrift server
 * A web page that should show an image that was delivered via thrift binary protocol from
the c++ server

  was:
I've spent many days researching about how to use thrift binary protocol in the webbrowser,
so far with no clear result. There are many references across the internet but they do not
form a full picture.

According to my findings, the binary protocol works in nodejs, and supposedly nodejs-thrift
is also in other aspects "superior" to plain Javascript. But I can not really put my finger
on any details. Furthermore it seems that nodejs can be used in the browser via browserify,
and there are some thrift issues and commits that indicate that people have used this in the
past.

However I completely fail to see how this works. I can generate thrift js bindings but then
I do not know where to go from there.

It would be really awesome if someone can extend the thrift documentation with a full example
of such a use case. Starting for example from the nodejs docs, how can thrift be used in a
webbrowser to connect to a nodejs/Java/Python/C++/... server?


> Kindly add an example how to use javascript binary protocol in the browser
> --------------------------------------------------------------------------
>
>                 Key: THRIFT-4978
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4978
>             Project: Thrift
>          Issue Type: New Feature
>            Reporter: Mario Emmenlauer
>            Priority: Minor
>
> I've spent many days researching about how to use thrift binary protocol in the webbrowser,
so far with no clear result. There are many references across the internet but they do not
form a full picture.
> According to my findings, the binary protocol works in nodejs, and supposedly nodejs-thrift
is also in other aspects "superior" to plain Javascript. But I can not really put my finger
on any details. Furthermore it seems that nodejs can be used in the browser via browserify,
and there are some thrift issues and commits that indicate that people have used this in the
past.
> However I completely fail to see how this works. I can generate thrift js bindings but
then I do not know where to go from there.
> It would be really awesome if someone can extend the thrift documentation with a full
example of such a use case. Starting for example from the nodejs docs, how can thrift be used
in a webbrowser to connect to a nodejs/Java/Python/C++/... server?
> My full user story is:
>  * A c++ thrift server
>  * A web page that should show an image that was delivered via thrift binary protocol
from the c++ server



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message