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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:21:08+00:00 2026-06-16T04:21:08+00:00

So I have this 2 applications connected with a REST API (json messages). One

  • 0

So I have this 2 applications connected with a REST API (json messages). One written in Django and the other in Php. I have an exact database replica on both sides (using mysql).

When i press “submit” on one of them, i want that data to be saved on the current app database, and start a cron job with celery/redis to update the remote database for the other app using rest.

My question is, how do i attribute the same worker to my tasks in order to keep a FIFO order?

I need my data to be consistent and FIFO is really important.

Ok i am going to detail what i want to do a little further:

So i have this django app, and when i press submit after i fill in the form my celery worker wakes up and takes care of taking that submitted data and posting to a remote server. This i can do without problems.

Now, imagine that my internet goes down at that exact time, my celery worker keeps retrying to send until it is successful But imagine i do another submit before my previous data is submitted, my data wont be consistent on the other remote server.

Now that is my problem. I am not able to make this requests FIFO with the retry option given by celery so i that’s were i need some help figuring that out.

  • 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-16T04:21:09+00:00Added an answer on June 16, 2026 at 4:21 am

    this is the answer i got from another forum:

    Use named queues with celery:
    http://docs.celeryproject.org/en/latest/userguide/workers.html#queues

    Start a worker process with a single worker:
    http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#starting-the-worker-process

    Set this worker to consume from the appropriate queue:
    http://docs.celeryproject.org/en/latest/userguide/workers.html#queues-adding-consumers

    For the fifo part i can sort my celery broker in a fifo order before sending my requests

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

Sidebar

Related Questions

So I have this 2 applications connected with a REST API (json messages). One
Actually I have some MVC3 Applications and I want to call this applications from
Still learning JSP Web Applications here. I have been doing this for a while
I have a formula like this which works fine on Excel/OOCalc applications: =SUMPRODUCT(--($Panels.$A$5:$A$6999=K$80);--($Panels.$B$5:$B$6999=K$81);INDEX($Panels.$C$5:$J$6999;0;MATCH(Voc;$Panels.$C$3:$J$3;0))) Since
Let’s start with this statement: We have published couple of free applications on the
Requirement is this ... We have our 3 web-applications deployed in RHEL-5 server, we
This is a very common thing in web applications. If I have a user
I have two heroku accounts with two seperate applications. I am new at this
I have this application written in JSF 2.0 facelets and it has the following
Big applications contains lots of objects that are somehow connected to each other. There

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.