Re: [testdrivendevelopment] "Find or Create" functions: a discussion

"Ken Mccormack" <[email protected]> Mon, 25 Nov 2019 21:24:47 +1100
Newsgroups gmane.comp.programming.test-driven-development
Message-ID <CAEVAvtzUx1jCZjKtsOtLrsLtp7cbM8KqDZAH4-x3NCJi8me9sA@mail.gmail.com>
--000000000000f8f2440598292c5a
Content-Type: text/plain; charset="UTF-8"

Hi All

10 years since I posted here?  Maybe! Hope everyone is well!

CQRS means that views are permitted to have less than absolute correctness,
ie a scale of CAP, Brewer's theorem, etc.

So, when doing an insert, the same considerations will apply - I guess the
question is "When do you need to know the command was
successful?Immediately, or later on?" ;)

The find operation is just another view, how correct it needs to be will
depend on the workload.

If you're worried about it, those new fangled distributed hashing
algorithms would probably increase the odds of success -
https://www.se-radio.net/2019/02/se-radio-episode-358-probabilistic-data-structure-for-big-data-problems/

Ken

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#35762): https://groups.io/g/testdrivendevelopment/message/35762
Mute This Topic: https://groups.io/mt/61872506/3268755
Group Owner: [email protected]
Unsubscribe: https://groups.io/g/testdrivendevelopment/leave/6156322/744556386/xyzzy  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


--000000000000f8f2440598292c5a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi All<div dir=3D"auto"><br></div><div dir=3D"auto">10 ye=
ars since I posted here?=C2=A0 Maybe! Hope everyone is well!</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">CQRS means that views are permitted =
to have less than absolute correctness, ie a scale of CAP, Brewer&#39;s the=
orem, etc.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">So, whe=
n doing an insert, the same considerations will apply - I guess the questio=
n is &quot;When do you need to know the command was successful?Immediately,=
 or later on?&quot; ;)</div><div dir=3D"auto"><br></div><div dir=3D"auto">T=
he find operation is just another view, how correct it needs to be will dep=
end on the workload.</div><div dir=3D"auto"><br></div><div dir=3D"auto">If =
you&#39;re worried about it, those new fangled distributed hashing algorith=
ms would probably increase the odds of success - <a href=3D"https://www.se-=
radio.net/2019/02/se-radio-episode-358-probabilistic-data-structure-for-big=
-data-problems/">https://www.se-radio.net/2019/02/se-radio-episode-358-prob=
abilistic-data-structure-for-big-data-problems/</a></div><div dir=3D"auto">=
<br></div><div dir=3D"auto">Ken</div><div dir=3D"auto"><br></div><div dir=
=3D"auto"><br></div><div dir=3D"auto"><br></div></div>

<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>

You receive all messages sent to this group.


<p>

<a target=3D"_blank" href=3D"https://groups.io/g/testdrivendevelopment/mes=
sage/35762">View/Reply Online (#35762)</a> |


  <a target=3D"_blank" href=3D"mailto:[email protected]?subj=
ect=3DRe:%20Re%3A%20%5Btestdrivendevelopment%5D%20%22Find%20or%20Create%22%=
20functions%3A%20a%20discussion">Reply To Group</a>
  
    | <a target=3D"_blank" href=3D"mailto:[email protected]?subject=
=3DPrivate:%20Re:%20Re%3A%20%5Btestdrivendevelopment%5D%20%22Find%20or%20C=
reate%22%20functions%3A%20a%20discussion">Reply To Sender</a>
  


|


  
    <a target=3D"_blank" href=3D"https://groups.io/mt/61872506/3268755">Mu=
te This Topic</a>
  

| <a href=3D"https://groups.io/g/testdrivendevelopment/post">New Topic</a>=
<br>



<br>

<a href=3D"https://groups.io/g/testdrivendevelopment/editsub/3268755">Your=
 Subscription</a> |
<a href=3D"mailto:[email protected]">Contact Group Own=
er</a> |

<a href=3D"https://groups.io/g/testdrivendevelopment/leave/6156322/7445563=
86/xyzzy">Unsubscribe</a>

 [[email protected]]<br>
<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>


--000000000000f8f2440598292c5a--