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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:02:26+00:00 2026-06-03T07:02:26+00:00

Disclaimer: The author of this post has only theoretical and almost no practical knowledge

  • 0

Disclaimer: The author of this post has only theoretical and almost no practical knowledge about software architecture for web applications.

Let’s say I want to build a web app with the following architecture outline:

  1. A typical web frontend, that lets users to create/edit/delete an account and creates/updates/deletes the account records in…
  2. … the database, which stores all users’ accounts;
  3. and a Jabber bot (a separate service, maybe on a separate physical machine) which speaks to the users, but needs to look up and update stuff about the users in the same database (2).

So, essentially I have two applications that use the same one database. I am not sure it is a good solution due to data integrity, race conditions and other issues.

I typical use case could be: User1 is interacting with the Jabber bot (3) and the bot needs to look up and update data in the database, and at exactly the same moment User2 creates an account through (1), which requires some interaction with the database (2).

How can avoid that type of architecture while keeping the required functionality? Or how can I design the architecture in a way that eliminates the need to query one database from two distinct services?

(unfortunately the ‘business model’ of this app does not allow having ‘account management'(1) and ‘Jabber bot'(2) logic in one web service).

P.S. The most important requirement of the system in question is high availability (maybe it would affect the answer somehow).

  • 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-03T07:02:28+00:00Added an answer on June 3, 2026 at 7:02 am

    There is no problem with querying or updating the database from two distinct services. Databases are designed to serv several different requests concurrently and it is indifferent for the database whether these concurrent requests come from the same application or from different applications.

    Even if we remove the Jabber service (3), you can still have several concurrent web-requests being processed by the web app (1) and that will create parallel database queries.

    There is no problem with that, until you reach a certain limit.
    Once you’ll grow above a certain limit (let’s say 1000 concurrent requests, but the actual number depends on different circumstances) you may have to cluster your database.

    But before you reach that, you will face other bottlenecks for performance. E.g. setting up caching properly will let you serve more users with a single instance of the database server.

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

Sidebar

Related Questions

Disclaimer: The author of this post is a C++ beginner. In my Erlang code,
Disclaimer: The author of the question has an average knowledge of Erlang and a
Disclaimer : this is a strange issue that only happens in a Kindle Fire
Disclaimer: I have attempted to contact the developer about this plugin, but silence reigns.
Disclaimer: This question is not about fixing visual studio So, I've used VSS for
Disclaimer: The author is a newbie in OTP having some basic knowledge of Erlang's
Disclaimer: the author has tried his best to ask a question that will not
Disclaimer: I know this type of question has been asked here before, I just
Disclaimer: I'm sure this has been answered before but I cannot find anything on
Disclaimer: This is not actually a programming question, but I feel the audience on

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.