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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:22:30+00:00 2026-05-24T10:22:30+00:00

There in the project is a major DB Server, and other servers installed at

  • 0

There in the project is a major DB Server, and other servers installed at different places maintain their own local Databases. We have to allow every system to update its local database to any version on the major DB. All the servers runs Java environment.

There seems many ways to transfer files: simple web download page, web-service, FTP, Socket.. What do you think fits better for this situation?

The general procedure looks like:

1, Client sends a string of version to the Server.
2, Server generates a patch and sends back.
(Since the patch maybe too huge, it should be separated to parts)

And what I’m thinking about is inside the procedure 2.
There are really a lot of choices.

1, I should at first count the rows to be fetched and calculate how many parts it should be divided.

And then I meet a choice, should I just send back the number of parts or a list of links to the Client, and the Client uses the links to request each part if the connection based on web request, Or I can push parts back one by one if servers are connected with socket, or I can do the following step:

2, I can fetch needed records from the Server Database part by part, each time get a limited rows, return as Java List, serialize the List to a file immediately in order to empty memory for the next part, so I get a folder of files. And I compress the files to a single one and send back, avoiding the Client to request for a second time.

And the patch files generated can be kept for other Clients when requesting the same version.

I think all the ways will work, but which do you think is better? Or you know a better way?
Let’s share.

  • 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-24T10:22:30+00:00Added an answer on May 24, 2026 at 10:22 am

    Finally I’m here to talk about the way I chose.

    I made the major server to off a action that verify the incoming request. And prepare data to be sent serialized and package them into a single zip file. Send the zip file back to the requesting machine in a InputStream as the response.

    Then the requesting machine unzip the file and deserialize and used them.

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

Sidebar

Related Questions

There seems to be two major conventions for organizing project files and then many
In my project there are situations where we have to send xml messages (as
There is a project that I need to maintain that talks to mysql via
I have a project where there are multiple applications that have some common configuration
I inherited a project that needs to be mutithreaded. There is three major classes
I'm using log4net in my project and there is one problem. The major function
In my project there are large no. of FIXME / TODO which are to
In my project there are some 'Prototype' factories that create instances by cloning a
Is there a project that can log errors in requests to Django on Google
I am using My-eclipse and doing a struts project there is no syntax error

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.