Inconsistent behaviors re: RESO Web API, ModificationTimestamp, and DaysOnMarket? #152
bryanburgers
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some questions for the working group related to Web API, ModificationTimestamp, and DaysOnMarket1.
Imagine this situation.
ModificationTimestamp
is2024-04-21T12:46:12Z
.DaysOnMarket
is5
.StandardStatus
isActive
.ModificationTimestamp
is still2024-04-21T12:46:12Z
.StandardStatus
is stillActive
.The question: on the new payload, what do you expect
DaysOnMarket
to be?Before moving on, take a minute to really decide what you think is correct.
(For the visual, here's a diagram of the situation.)
If you answered 5, you're in good company! But if you answered 6, so are you! Currently in the RESO Web API ecosystem, both behaviors can be observed.
Of the RESO Web API Providers I have access to (which isn't all of them) some major providers would return 5 in this case and some major providers would return 6.
It seems Web API Providers fall into two categories (I'm making up terms now): Immutable and Variable.
Immutable
Conceptually, an Immutable provider returns the same content back for a request regardless of when the request was made (immediately after the update occurred or multiple days after the update occured).
Because of this, requests on later days return the same (immutable) payloads.
Immutable diagram
Variable
Conceptually, a Variable provider takes into account when the request was made and returns the most up-to-date data. This describes observable behavior, the actual mechanism here could be calculating DaysOnMarket on the way out or running a script every morning to update the database values.
Because of this, requests on later days return different (variable) payloads.
Variable diagram
The Actual Questions
I am not going to try to enumerate the pros and cons of each approach (I'd love for you, dear reader, to do that below!). Instead, I'm asking these questions:
Footnotes
Yes this relates to questions I've received several times about the DaysOnMarket Auto-Increment proposal, but I don't see that proposal as mutually exclusive with whatever comes out of this discussion. ↩
Beta Was this translation helpful? Give feedback.
All reactions