欢迎来到天天文库
浏览记录
ID:8219038
大小:4.67 MB
页数:44页
时间:2018-03-10
《ArchSummit北京2015-《Scala在挖财的应用实践》-王宏江》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ᨰጱScalaଫአਫ᪢ਡ2015.12ىԭ౯ᨰᩒႮຝԪկݎํ܈ग़ଙ้ࣁᴨ᯾૬૬ձຝAli-tomcatᨮᨱՈํӿጱմӱݎᘶᗑຝᕪḵڍฎԞහୗᖫᑕᆽঅᘏScala᭲ᘏӻՈblogғhttp://hongjiang.info1.ݎࢫᴚզ݊ᒒຝ༷٭ࢫᴚᇫ٭•ᬪӞଙग़ᳵጱದՈާᥢཛྷᬪ200Ո50Ոૢݦ•ᨰӧฎದᔜࣳࢫᴚԞӧॡݢᚆᩳᬯᐿ᪠ᕚᨰጱᒒದࣁᕚᔮᕹၿ݊ጱრԾߝຝғ•Nginx̵Tomcat̵Spring-mvc/Play•Springboot̵Dubbo̵Zook
2、eeper̵Spring̵Mybatis•MySql̵Cobar̵Hbase̵Mongo̵Redis/Memcached•Kafka̵Storm•Zabbix̵ELKݎғJava/Scala,Go,C++,Python/Phpᨰጱᒒದ•᭳ኸᳯ᷌ਖ਼ᥝଳጱғ–Mongo–Memcached–ࣁᕚӱۓጱpythonᑕଧ–ຝ٬ᒽचԭᛔጱᬩᖌᚆێಅᘍᡤದຝ༷٭ᐒ܄ᦕᨴᓕਹቘᨰளᩅמአܜᷚഴአಁᩒԾၞԻฃඪ՞…चᏐᦡෞਂؙၾ௳ຝݎᬩᖌ…ቘᨰӱۓੴ᮱ཛྷࣘAppWebɤݎၾ௳ၾ௳Ӿஞᨵຝɡඪ՞ԾߝӾஞԻฃӾஞඪ
3、՞Ӿஞɢඪ՞᭗Ꭳɠኞ౮ᦈܔɣๅෛ೮ᦈܔ೮ӾஞَࣳጱದຝwebappNginxNginxTomcatTomcatTomcatTomcatSessionCacheᵞᗭkafkaDubbo/Dubbo/Dubbo/Dubbo/SpringbootSpringbootSpringbootSpringbootAkka数据处理ᑕଧCacheDBᵞᗭᦇ௳ᔮᕹᦕᨴහഝਂؙଫአᵞᗭha-proxycobarcobarmysqlਫn归档程序Hbaseᵞᗭᛔۖᦕᨴහഝ॒ቘeventraw-datakafkaclassifierlisten
4、erakkaassemblerassemblerassemblerakkasubscriberdistillerdistillerdistillerDBහഝړຉStormmysqlcodisbinlogcobarkafkacanalredisredisgroupgroupmysqlmysqlHadoop/Spark2.Scalaࣁᨰጱአဩԏԩ᭗ᬦݍᥡᬦ݄ӻӮᕉզᖫᑕጱᬰ۸ො౯ᦊԅᖫᑕᕷӧտೲᆙכᗔ.໒ᵮܰঢಅ᧔፳“ੜᘒଗٳ”ጱොᬰ۸̶ሿࣁጱᖫᑕ෫ᦞۑᚆӤᬮฎဩӤ᮷૪ᕪӧฎᮎܔᕍԧᡱᆐԞ้ᕪํՈ
5、ݒԶᬯਖ਼ᦶێۘๅੜๅᓌܔۑ౮ฎᓒᚆӧ٬᮷ٖࣁcrAጱᦇᦡಅ૩ᛔঢܰᵮ໒.ᗔכೡ۱ጱᦶ̶ࣁ౯፡ᖫᑕጱᬰ۸ۖӧฎૡٍጱᓌ۸ᘒฎਖ਼᭗ᬦᬯԶૡٍಅکጱᕮຎ(ᥴ٬ොໜ)ๅᓌ၄ࣈᤒᬡڊ̶ᬪӻӮᕉզᖫᑕӧෙ׀శݎṛଶጱು۸ᇙԞྋฎԅԧᬡکᬯӻፓጱ̶ࢩྌ౯ժݢզஉᛔᆐࣈᦊԅᬯᐿכᖅᖀտᧆଫԞਖ਼ࣁ۠೮̶ຂᤈଡ଼ᭌೠScalaጱቘኧဳԪᶱቘኧғय़᮱ړຝ᮷ࡅཻᬯᳪଚํਫ᪢ᕪḵဳԪᶱ:1)ӧᚆܔᅩᛗᥝํپӻঅच᮷ᚆhold2)ࢫᴚጱౄ3)ङِӧ୩ᬼ4)ᨆైአScalaኞா
6、ຝӧฃදݒJavaԆၞຝ–Scalaஉঅᐒ܄౮ᆧଶஉ૧ѺScalaጱսᅩๅᓌ၄̵ṛපጱᤒᬡӞԶཛྷୗScalaፗളࣁ੶ᶎඪ೮ғ•1҂singletonpattern!object•2҂visitorpattern!patternmatching•3)facotrypattern!applymethod•4)builderpattern!currying•5)dependencyinject!cakepattern•6)immutablepattern!val•7)valueobject!caseclass•….
7、..ScalaጱսᅩᶉாᔄࣳԞݢզඪ೮ۖாጱᇙғọৼᔄࣳ!pimpmylibrary(implicit)Scala2.10DynamicTypes…...ڍහୗᇙݢզᛔਧԎᑕଧጱၞഴC#usingݙ!ᩅཛྷୗ୩य़ጱᵞғ//ӞᕟၞӾತڊํᨴىᔮ(Իฃݩፘ)ጱcashflowBuf.groupBy(_.transactionNo).filter(_._2.size==2).values//ತڊፘ૧ӧ᩻ᬦ1ጱፘᮝزᔰscala>valtimeList=List(1,2,3,5,7,8)scala>timeLis
8、t.sliding(2,1).filter(e=>e(1)-e(0)<=1).foreach(println)List(1,2)List(2,3)List(7,8)Scalaӧঅጱࣈො•ᳪད–ڍහୗᙧว(य़᮱ړᑕଧާӧٍ॓)•ইetaᥢᕅ–ᔄࣳᔮᕹ(ଃਞقጱԞीےԧ॔)•य़ᰁचԭᔄࣳጱཛྷୗ(t
此文档下载收益归作者所有