FunDA (8) - Static Source: Guarantee the Safety of Resource Use - Resource Safety
We used many chapters earlier to discuss how to move data from the background database to memory and then perform line-by-line operations. The solution we chose was to convert background data into data streams in memory. Whether it is opening database tables or reading data from the database, it involves the safe use of database tables as a res ...
Posted by rel on Fri, 14 Dec 2018 17:06:03 -0800
FunDA(7)- Reactive Streams to fs2 Pull Streams
Reactive-Stream is not only a simple push-model-stream, but also a pull-model. This is because although Enumerator is theoretically responsible for pushing data actively in Iteratee mode, it implements push-model function. In fact, Iteratee can also start pushing data by providing a callback function to notify Enumerator, which is also a pull-m ...
Posted by AKA Panama Jack on Wed, 12 Dec 2018 14:51:09 -0800
Scala Macros-Metaprogramming with Def Macros
Scala Macros is an indispensable programming tool for scala library programmers. It can solve some problems that can not be solved by ordinary programming or class level programming, because Scala Macros can modify programs directly. Scala Macros works by modifying a program to produce a new program according to the programmer's intention at th ...
Posted by big_c147 on Tue, 11 Dec 2018 23:18:06 -0800
Akka(31): Http:High-Level-Api,Route rejection handling
Route is the core part of Akka-http routing DSL, which makes it easy for users to screen http-request from the perspective of http-server, perform server operation, and construct the reply http-response. The main purpose of screening http-request is to allow requests to enter the next inner Route or reject request s. For example, this ~symbol: ...
Posted by scheinarts on Tue, 11 Dec 2018 12:33:05 -0800