Functional programming lets you forget design patterns

This is a reading note for Java 8 Actual, which takes about 5 minutes to read. It's a bit of a headline party, but that's what I feel when I recently used Lambda expressions.Design patterns are a summary of some good experience and routines from the past, but good language features allow developers to bypass them.Common object-oriented design p ...

Posted by hearn on Sat, 06 Jul 2019 18:05:07 +0200

Maven typed in local and remote libraries, used in ecpliseidea

Other blogger posts: http://blog.csdn.net/dhmpgt/article/details/9998321 Maven Tools for managing project jar packages automatically download the corresponding jar packages from the server library to the project based on the configuration file. Prepare the file: install 1) Unzip repository to D:/maven/repositoryserver as Maven loca ...

Posted by lostcarpark on Wed, 03 Jul 2019 18:29:10 +0200

Source Code Analysis of Bootstrap Initialization Process--Start of netty Client

Bootstrap initialization process netty's client boot class is Bootstrap. Let's take a look at the initialization process of Bootstrap in the client part of spark's rpc. TransportClientFactory.createClient(InetSocketAddress address) Simply post out the Bootstrap initialization code // Client boot object Bootstrap bootstrap = new Bootstrap(); // ...

Posted by gonsman on Sat, 22 Jun 2019 21:04:18 +0200

spark source code parsing -- Shuffle output tracker -- MapOutput Tracker

Shuffle Output Tracker As an auxiliary component of shuffle, this component plays an important role in the whole shuffle module. In the previous series of analyses, we mentioned this component more or less. For example, when DAGScheduler submits a stage, it encapsulates the stage as a TaskSet, but the possible partitions have been computed and ...

Posted by kroll on Tue, 18 Jun 2019 20:08:06 +0200

Akka (13): Distributed Operations: Cluster-Sharing-Operations Cluster Fragmentation

Through the introduction of Cluster-Singleton in the last part, we understand Akka's programming support for distributed programs: message-driven computing mode is particularly suitable for distributed programming, we do not need special efforts, just need to follow the normal Actor programming mode to achieve cluster distributed programs. Clus ...

Posted by feckless on Fri, 14 Jun 2019 02:59:14 +0200

Akka (16): Persistent mode: Persistent FSM - state machine that can be automatically repaired

We discussed FSM, an Actor specially designed to maintain internal state, which is characterized by a special DSL that can easily perform state transition. The state transition mode of FSM is particularly suitable for business processes in reality, because its DSL can describe business functions more vividly. In order to achieve the availabilit ...

Posted by junrey on Thu, 06 Jun 2019 20:15:02 +0200

Akka (18): Stream: Composite Data Stream, Component - Graph components

The data stream of akka-stream can be composed of some components. These components are collectively called data flow graph Graph, which describes data flow and processing. Source,Flow,Sink are the most basic Graph. More complex composite Graph can be combined with basic Graph. If all ports of a Graph (input and output) are connected, then it i ...

Posted by ziong on Sat, 01 Jun 2019 21:27:54 +0200