150150< div class ="page-content row ">
151151< div class ="small-12 large-9 column " id ="docs ">
152152< h1 > < a href ="#words-on-api " name ="words-on-api " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Words on API</ h1 >
153- < p > Thoth is non-blocking by default and rely on vavr but, you can choose if you use it or not.</ p >
153+ < p > Thoth is non-blocking by default and rely on vavr but, you can choose if you want to use it or not.</ p >
154154< h2 > < a href ="#fifty-shades-of-apis " name ="fifty-shades-of-apis " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Fifty shades of APIs</ h2 >
155155< h3 > < a href ="#basic-api " name ="basic-api " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Basic API</ h3 >
156156< p > The basic API use vavr for several reasons :</ p >
@@ -221,13 +221,13 @@ <h3><a href="#vanilla-api" name="vanilla-api" class="anchor"><span class="anchor
221221}
222222</ code > </ pre >
223223< h3 > < a href ="#blocking-api " name ="blocking-api " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Blocking API</ h3 >
224- < p > If you don’t to handle the non-blocking aspect, you can implement blocking interface, ie the blocking < code > CommandHandler</ code > .</ p >
224+ < p > If you don’t want to handle the non-blocking aspect, you can implement blocking interface, ie the blocking < code > CommandHandler</ code > .</ p >
225225< p > The component to use</ p >
226226< ul >
227227 < li > < code > fr.maif.eventsourcing.blocking.CommandHandler</ code > : with standard API (vavr)</ li >
228228 < li > < code > fr.maif.eventsourcing.vanilla.blocking.CommandHandler</ code > : with vanilla API</ li >
229229</ ul >
230- < p > With the blocking API, you’ll have to implement something like :</ p >
230+ < p > With the blocking vanilla API, you’ll have to implement something like :</ p >
231231< pre class ="prettyprint "> < code class ="language-java "> public class BankCommandHandler implements CommandHandler<String, Account, BankCommand, BankEvent, List<String>, TxCtx> {
232232
233233 @Override
@@ -276,14 +276,14 @@ <h3><a href="#reactive-api-using-reactor" name="reactive-api-using-reactor" clas
276276< h2 > < a href ="#cheat-sheet " name ="cheat-sheet " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Cheat sheet</ h2 >
277277< h3 > < a href ="#concepts-and-vocabulary " name ="concepts-and-vocabulary " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Concepts and vocabulary</ h3 >
278278< ul >
279- < li > a command : an action coming from the user that the system has to handle</ li >
279+ < li > a command : an action from the user that the system must handle</ li >
280280 < li > an event : something that append in the system</ li >
281281 < li > a journal : a place where the events are stored</ li >
282282 < li > a state or aggregate : the current state, the results of the previous events</ li >
283283 < li > a projection : an alternative view of the events, this is a read model</ li >
284284</ ul >
285285< h3 > < a href ="#overview-of-interface-to-implement " name ="overview-of-interface-to-implement " class ="anchor "> < span class ="anchor-link "> </ span > </ a > Overview of interface to implement</ h3 >
286- < p > Here the list of interface you need or, you could implement (and the reason why).</ p >
286+ < p > Here is the list of interface you need or, you could implement (and the reason why).</ p >
287287< table >
288288 < thead >
289289 < tr >
@@ -306,57 +306,57 @@ <h3><a href="#overview-of-interface-to-implement" name="overview-of-interface-to
306306 < tr >
307307 < td > < code > CommandHandler</ code > </ td >
308308 < td > yes </ td >
309- < td > The component that handle commands and produce events </ td >
309+ < td > The component that handles commands and produces events </ td >
310310 </ tr >
311311 < tr >
312312 < td > < code > EventHandler</ code > </ td >
313313 < td > yes </ td >
314- < td > The component that handle events and produce a state </ td >
314+ < td > The component that handles events and produces a state </ td >
315315 </ tr >
316316 < tr >
317317 < td > < code > Projection</ code > </ td >
318318 < td > if you need read models </ td >
319- < td > The component that handle events and produce read model </ td >
319+ < td > The component that handles events and produces read model </ td >
320320 </ tr >
321321 < tr >
322322 < td > < code > AbstractDefaultAggregateStore</ code > </ td >
323323 < td > if you need snapshots </ td >
324- < td > The component that load state from events in the journal </ td >
324+ < td > The component that loads state from events in the journal </ td >
325325 </ tr >
326326 < tr >
327327 < td > < code > EventFormat</ code > </ td >
328328 < td > no </ td >
329- < td > The component that serialize / deserialize events </ td >
329+ < td > The component that serializes / deserializes events </ td >
330330 </ tr >
331331 < tr >
332332 < td > < code > JacksonEventFormat</ code > </ td >
333333 < td > yes (prefered) </ td >
334- < td > The component that serialize / deserialize events to json </ td >
334+ < td > The component that serializes / deserializes events to json </ td >
335335 </ tr >
336336 < tr >
337337 < td > < code > SimpleFormat</ code > </ td >
338338 < td > yes </ td >
339- < td > The component that serialize / deserialize events ignoring errors </ td >
339+ < td > The component that serializes / deserializes events ignoring errors </ td >
340340 </ tr >
341341 < tr >
342342 < td > < code > JacksonSimpleFormat</ code > </ td >
343343 < td > yes </ td >
344- < td > The component that serialize / deserialize events to json ignoring errors </ td >
344+ < td > The component that serializes / deserializes events to json ignoring errors </ td >
345345 </ tr >
346346 < tr >
347347 < td > < code > EventPublisher</ code > </ td >
348348 < td > no (only if don’t use Kafka) </ td >
349- < td > The component that publish events </ td >
349+ < td > The component that publishes events </ td >
350350 </ tr >
351351 < tr >
352352 < td > < code > EventStore</ code > </ td >
353353 < td > no (only if don’t use PG) </ td >
354- < td > The component that store and query events </ td >
354+ < td > The component that stores and query events </ td >
355355 </ tr >
356356 < tr >
357357 < td > < code > EventProcessor</ code > </ td >
358358 < td > no </ td >
359- < td > The component orchestrate all the magic </ td >
359+ < td > The component orchestrates all the magic </ td >
360360 </ tr >
361361 </ tbody >
362362</ table >
0 commit comments