Hi,

although you can combine languages in general, this is restricted to what 
the underlying platform allowes and has absolutely nothing to do with 
Thrift. For example, I could link a library that is written in C into some 
other language, or combine a C# Thrift assembly with another NET language, 
like F#. If there is no tecghnical way under the suin to integrate Java dn 
Go into one process and call each other (which is the absolute minimum 
requirement) I'd say there is no way to achieve that.

In that regard and aside from that, there is no additional magic in Thrift. 
Thrift only deals with serializing and deserializing data and 
sending/receiving them across some transport mechanism. That's no rocket 
science, it's just a matter of standardizing stuff and make it efficient.

One could use Thrift to have different parts of an application talk to each 
other (that's not your use case, I know). E.g. we have a scenario where we 
load a native Win32 DLL into a C# application and use Thrift to take off the 
burden from the application developers to deal with the technical details 
and possbible complications of PInvoke etc.

Have fun,
JensG



-----Ursprüngliche Nachricht----- 
From: Abhishek Chhajer
Sent: Monday, August 26, 2019 5:55 PM
To: [email protected]
Subject: Re: Can I use a Nonblocking server in one language (Go) and have 
handlers written in another (Java)

I have only worked in Java for thrift.

You are writing code only for handlers. The framework has it's non blocking
server implementation which you are using in your application.

Note - I am fairly new, so take this with some skepticism.

-Abhishek


On Sun, Aug 25, 2019, 9:03 PM Dedipyaman Das <[email protected]> wrote:

> I'm trying to use Go's concurrency, so having a server written in go makes
> sense to me. But most of my business logic is written in Java. Can I make
> use of a server (some sort of threaded server) in Go and delegate the
> method calls to handlers implemented in Java?
> 

Reply via email to