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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:28:10+00:00 2026-06-04T11:28:10+00:00

I am implementing a REST webservice and I have a resource (http://localhost/createUser) which is

  • 0

I am implementing a REST webservice and I have a resource (http://localhost/createUser) which is a POST method and takes in a JSON user object.

Now at time t1, a caller calls this API with a JSON object. I make basic validations at time t1 and return response as sucessfull.

But at my backend, this person creation logic takes a while to “really create” and persist it to database – which will take some time – say at time t2 – the user creation is completed.

Now what are the ways for me to notify the caller that this User Creation has been “really successfull”? (or the user creation might fail in between t1 and t2, how to notify this to the caller of this API? what are the ways?)

One way I think of is, create a requestId for each such request and the caller keeps polling another GET API, like (http://localhost/status/requestId) which will give him the result for that request.

Is there any better way to do this?

  • 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-04T11:28:11+00:00Added an answer on June 4, 2026 at 11:28 am

    Either wait for the user to “really” be created before returning or implement a getUser-like operation… which may have a status field for “creating” vs “created”. Mapping every call to a “requestId” seems like a bit much, in my opinion.

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

Sidebar

Related Questions

I have a Jersey based Rest WS which outputs JSON. I am implementing a
I've been implementing a GWT application that calls a REST-service (which we're also developing).
I am working with re-implementing a REST API for which client has no source
I have a REST web-service interface that calls-down to a service layer which orchestrates
Currently I'm implementing a REST client which shall parse the XML response messages. It
I am implementing a web service and I have implemented both a REST and
I'm implementing a REST API in Rails 3. We allow for JSON and XML
I have class implementing Comparator<String> which should sort strings in such manner that strings
I'm implementing a RESTful API which exposes Orders as a resource and supports pagination
I am implementing a REST API which requires throttling. I know that, ideally, you

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.