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 4021264
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:19:49+00:00 2026-05-20T10:19:49+00:00

I am developing a social application on top of Java and Cassandra database. I

  • 0

I am developing a social application on top of Java and Cassandra database. I need to store posts/comments of the user’s shared posts, in database for which I am looking to serialize data per single comment/post & then store serialized data in the database in one column. Thus for each comment, there’ll be a single column that stores this data in serialized format:-

  1. Comment data(String around 700 characters max)
  2. CommentorId (long type)
  3. CommentTime (timestamp)

Similarly a posts’ data will be serialized and stored as a single column.

Fast Deserialization would be required at each retrieval of that post by the frontend.

I am looking at protocol buffers as the probable solution for this. Would like to know whether choosing protocol buffers for this task is the right choice or not. I am looking for a high performance & fast serialization & deserialization algorithm that can serve for heavy usage in the application.

Also, is it possible to send the data in serialized format, to client and then there could it be deserialized ? server to client communication?

  • 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-20T10:19:50+00:00Added an answer on May 20, 2026 at 10:19 am

    protocol buffers certainly provides serialization, although the RPC side of things is left to your imagination (often something simple and socket-based works very well).

    The data-types are all well supported by protobuf (although you might want to use something like ms into the unix epoch for the date). Note though that protobuf doesn’t include compression (unless you also apply gzip etc to the stream). So the message will be “a bit longer than the string (which always uses UTF-8 encoding in protobuf). I say a “a bit” because the varint algorithm for integer types could give anything between 1 and 10 bytes each for the id and timestamp, depending on their magnitude. And a few (3, probably) bytes for the field headers.

    If that sounds about right, then it should work fine. If you have lots of text data, though, you might want to run the protobuf stream through gzip as well. Java has excellent support within protobuf via the main google trunk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a social network from scratch and need to store the user's
I am developing a social network from scratch and need to store the user's
I am in the middle of developing a PHP social media web application which
I am developing an application which schedules messages to post on social media on
I am developing a mobile social TV application on Android.I want to integrate Facebook
I've been evaluating technology stack for developing a social network based application. Below are
We are now developing a social news feed iOS app, and we need to
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart
I am developing a social networking site. It has functionality like user registration, people
Im developing a Facebook app with java and spring social. Is it possible to

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.