I'm trying to remember some conference talk from l...
# squarelibraries
c
I'm trying to remember some conference talk from long long ago (maybe droidcon montreal) and I'm fairly certain there was some talk regarding a square library that was used to persist transactions before they could actually be sent over the wire (i.e. like if a payment reader was taking a payment while a device is online. so it had to be save). i also think that was the first time i learned of the word "idempotency". anyway. if that rings a bell for any of you square folks... plz let me know!
j
tape
Bob Lee gave a talk at Devoxx 2012
😢 1
❤️ 1
Not sure about other talks that were public. I gave two private talks about it.
c
never been to devoxx. only droidcons. but ah. i do recall "dukttape"? i will look that up
j
duktape is unrelated
c
oh. lol
whoops.
j
that's a JS engine we packaged on Android for a while
👍 1
c
looks like tape is "archived". any tldr on what the "thing to do" when you need to store transactions like that (i.e. payments) in an env where you might not have network?
j
sqlite
tape was basically the write-ahead log of sqlite without the database behind it
just a durable queue
c
ah okay. so Sqlite with WAL enabled is what I'd want?
j
yeah, probably
tape came from Android 1.6/2.1 days where sqlite was a lot harder and less reliable
c
🙏
j
here's Bob''s talk:

https://www.youtube.com/watch?v=0u1CnLoewfQ

❤️ 2
🙏 1
🥲 2
c
cool. thats exactly what im doing then. with a UUID for idempotency attached to each "transtion" in the transaction table.
j
yep, sounds right
c
618 views... about to have 619. got some nighttime watching. let me get the popcorn. Cheers! glad i asked!