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

  • Home
  • SEARCH
  • 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 110551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:14:41+00:00 2026-05-11T02:14:41+00:00

I challenge you :) I have a process that someone already implemented. I will

  • 0

I challenge you 🙂

I have a process that someone already implemented. I will try to describe the requirements, and I was hoping I could get some input to the ‘best way’ to do this.


It’s for a financial institution.

I have a routing framework that will allow me to recieve files and send requests to other systems. I have a database I can use as I wish but it is only me and my software that has access to this database.

The facts

  • Via the routing framework I recieve a file.
  • Each line in this file follows a fixed length format with the identification of a person and an amount (+ lots of other stuff).
  • This file is 99% of the time im below 100MB ( around 800bytes per line, ie 2,2mb = 2600lines)
  • Once a year we have 1-3 gb of data instead.
  • Running on an ‘appserver’
  • I can fork subprocesses as I like. (within reason)
  • I can not ensure consistency when running for more than two days. subprocesses may die, connection to db/framework might be lost, files might move
  • I can NOT send reliable messages via the framework. The call is synchronus, so I must wait for the answer.
    • It’s possible/likely that sending these getPerson request will crash my ‘process’ when sending LOTS.
  • We’re using java.

Requirements

  • I must return a file with all the data + I must add some more info for somelines. (about 25-50% of the lines : 25.000 at least)
  • This info I can only get by doing a getPerson request via the framework to another system. One per person. Takes between 200 and 400msec.
  • It must be able to complete within two days

Nice to have

  • Checkpointing. If im going to run for a long time I sure would like to be able to restart the process without starting from the top. …

How would you design this? I will later add the current ‘hack’ and my brief idea

========== Current solution ================

It’s running on BEA/Oracle Weblogic Integration, not by choice but by definition

When the file is received each line is read into a database with

id, line, status,batchfilename

and status ‘Needs processing’

When all lines is in the database the rows are seperated by mod 4 and a process is started per each quarter of the rows and each line that needs it is enriched by the getPerson call and status is set to ‘Processed’. (38.0000 in the current batch).

When all 4 quaters of the rows has been Processed a writer process startes by select 100 rows from that database, writing them to file and updating their status to ‘Written’. When all is done the new file is handed back to the routing framework, and a ‘im done’ email is sent to the operations crew.

The 4 processing processes can/will fail so its possible to restart them with a http get to a servlet on WLI.

  • 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. 2026-05-11T02:14:42+00:00Added an answer on May 11, 2026 at 2:14 am

    Simplify as much as possible.

    The batches (trying to process them as units, and their various sizes) appear to be discardable in terms of the simplest process. It sounds like the rows are atomic, not the batches.

    Feed all the lines as separate atomic transactions through an asynchronous FIFO message queue, with a good mechanism for detecting (and appropriately logging and routing failures). Then you can deal with the problems strictly on an exception basis. (A queue table in your database can probably work.)

    Maintain batch identity only with a column in the message record, and summarize batches by that means however you need, whenever you need.

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

Sidebar

Ask A Question

Stats

  • Questions 150k
  • Answers 150k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As David says, these errors go to the Application Log… May 12, 2026 at 9:45 am
  • Editorial Team
    Editorial Team added an answer These two statements block the program from getting into the… May 12, 2026 at 9:45 am
  • Editorial Team
    Editorial Team added an answer It’s possible to get rid of the containing tag with… May 12, 2026 at 9:45 am

Related Questions

If you want to move your development process from Test-Driven Development to Behavior-Driven Development
I have to login in to various elements to retrieve some data, problem is
There are quite a number of modules on CPAN relating to the creation and
ORIGINAL Q: I'm wondering if anyone has had experience of migrating a large Cobol/PL1

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.