diff --git a/_images/dunno.jpg b/_images/dunno.jpg new file mode 100644 index 0000000..8301bdd Binary files /dev/null and b/_images/dunno.jpg differ diff --git a/_images/fuck-that.jpg b/_images/fuck-that.jpg new file mode 100644 index 0000000..eaac389 Binary files /dev/null and b/_images/fuck-that.jpg differ diff --git a/_images/lisp.png b/_images/lisp.png new file mode 100644 index 0000000..f02a6e3 Binary files /dev/null and b/_images/lisp.png differ diff --git a/_images/streamprocessing-functional.jpg b/_images/streamprocessing-functional.jpg new file mode 100644 index 0000000..a891273 Binary files /dev/null and b/_images/streamprocessing-functional.jpg differ diff --git a/_images/streamprocessing-hadoop.png b/_images/streamprocessing-hadoop.png new file mode 100644 index 0000000..35cbb4a Binary files /dev/null and b/_images/streamprocessing-hadoop.png differ diff --git a/_images/streamprocessing-spark.png b/_images/streamprocessing-spark.png new file mode 100644 index 0000000..5b907b0 Binary files /dev/null and b/_images/streamprocessing-spark.png differ diff --git a/intro-stream-processing.html b/intro-stream-processing.html index 02c2115..a4e9071 100644 --- a/intro-stream-processing.html +++ b/intro-stream-processing.html @@ -268,6 +268,169 @@

Batch Processing

+ +
+
sudo cat /etc/shadow | cut -d ':' -f 2 | sort | uniq -c
+
+ +
+ +
+ +
+

Batch processing seria o caso de processar os dados de um dia.

+ +

Se novos dados entrassem no total do dia, bastaria reprocessar os dados do dia.

+ +

ou do mês, ou do ano.

+
+ +
+ + + +
+ +
+ Apache Spark Logo + Apache Hadoop Logo +
+ + +
+
+

Programação Funcional

+
+ +
+

Buzzwords!

+ + +
+ +
+ +
+ +
+

Funções Puras

+ +

Uma função é considerada pura se + ela sempre retorna o mesmo resultado para os mesmos + parâmetros.

+
+ +
+
def mult(a):
+    return a * 4
+
+ +
+
mult(2)
+ 8 + +
mult(2)
+ 8 +
+ +
+
class LightSwitch:
+    def __init__(self):
+        self.state = False
+
+    def switch(self):
+        self.state = not self.state
+        print(self.state)
+
+ +
+
light = LightSwitch()
+light.switch()
+ True + +
light.switch()
+ False +
+ +
+
print()
+ + + +
INSERT INTO table (value, value)
+ + +
+ +
+

Imutabilidade

+ +

Uma vez que o dado é gerado, ele nunca muda.

+ +

(Transparência referencial)

+
+ +
+ + + +
+ +
+ +
+ +
+ +
+ +
+ +