Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 299253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:48:22+00:00 2026-05-12T06:48:22+00:00

All I want to do is make some RPC calls over sockets. I have

  • 0

All I want to do is make some RPC calls over sockets. I have a server that does backendish stuff running jython 2.5. I need to make some calls from a frontend server running Django on CPython. I’ve been beating my head against a wall getting any form of IPC going.

The list of things I’ve tried:

  • Apache Thrift doesn’t have any actual releases, just snapshots. I’d like to use something stable.
  • JSON-RPC is interesting, and it should be able to run over sockets, but in practice most of the implementations only seem to work over HTTP. HTTP overhead is exactly what I’m trying to avoid.
  • Protocol Buffers is really only a serialization protocol. From what I gather protobuf provides interface generation for RPC, but it’s only the interface. Actually writing all the connection code is up to the user. If I’m going to be stuck using sockets, I’ll just use JSON for serialization. It’s simpler and faster.
  • Pyro doesn’t work properly with Jython as a server. Some sort of socket timeout issue. I’ve sent a message to the mailing list.
  • pysage Yay for message passing! Only it requires python 2.6 or the processing module (which has compiled extensions). Jython is version 2.5 and doesn’t allow compiled extensions.
  • Candygram is an interesting alternative to pysage, but as far as I can tell it’s unmaintained. I haven’t even tried it out with Jython. Any experiences with it?
  • Twisted Perspective Broker Twisted doesn’t work on Jython.

I know that it’d be a snap doing this with XML-RPC, which makes me even more cranky. I want to avoid the overhead of HTTP, but at the same time I really don’t want to get down and dirty with sockets to implement my own protocol. I’ll do it wrong if I do.

Any ideas? I’m probably going to cry for about 20 minutes and then just use XML-RPC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:48:22+00:00Added an answer on May 12, 2026 at 6:48 am

    How about using sockets, but with the help of asyncore and asynchat?

    Some links:

    • An example
    • http://docs.python.org/library/asyncore.html
    • http://docs.python.org/library/asynchat.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make sure that all 3 conditions result in the same answer
I have some git repositories accessed remotely through SSH and I want to make
I have a table and want to make some of the rows expandable -
I want to make some software that would be great if it do not
I want to make some re-useable, somewhat-dynamic TSQL code that can be called within
Hi i have two wordpress sites where i want to make some ajax jsonp
I have a XML file that I read with Python. I want to make
I have a client/server application written in C#/.NET 3.5 that I want to do
Hi All I want to make some animation using c#.Animation should include water falling
I want to make some simple edits on a Word document, eg replace all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.