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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:14:12+00:00 2026-06-18T10:14:12+00:00

I am faced with the following problem. We are required to call the Twitter

  • 0

I am faced with the following problem. We are required to call the Twitter API to send a status update then we must write a record to a local database, recording that this Twitter update happened.

My question is how can we ensure data consistency if either Twitter or the database calls fail? If we update Twitter and the database call fails we will have no local record of the Twitter call and if the Twitter call fails but the database call succeeds we will have an erroneous local record.

I understand the obvious first steps such as only updating the DB if Twitter call is successful or vice-versa but this only addresses half the problem.

I imagine that this is a common problem but I have tried searching for relevant information without much luck.

  • 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-06-18T10:14:13+00:00Added an answer on June 18, 2026 at 10:14 am

    Stephen,

    You will have a SPOF (single point of failure) in any case – it will be your application. However, for reducing the risk of failure, you can dump your data into a queue (of any sort; even a /tmpfs on the web-server will suffice), and repeat the attempts to write it to DB until it’s available.

    If the call to Twitter API fails, you obvoiusly can just put a record of failed attempt to the DB.

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

Sidebar

Related Questions

I'm refactoring a library we currently use, and I'm faced with the following problem.
I face the following problem function book($memberid, $classid){ if (!book){ // update the db
I am faced with the following problem. I need to (de)serialize (binary) a stream
We are faced with the following problem that involves keeping the following in sync:
Today I faced the following problem: I registered a new user on my Joobla
Currently im faced with the following problem: I have a script that searches through
I've been using Rapidxml lately and have faced following problem. When I try to
I'm faced with the following problem : I have a controller with lets say
I'm faced with the following problem in rails. I have a form to edit/create
I've faced the following problem with my aps validator. I have a textbox with

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.