仙人掌世界

learn - innovate - share

May 10, 2012

Finagle 概述

›
Finagle 是基於JVM的網路框架/堆疊,開發者能在之上使用Java,Scala或任何基於JVM程式語言來開發非同步運算的RPC Client/Server,其專案是 Twitter 總結了實務上遇到的問題,所設計的分散式系統方案,並在2011的7月開放源始碼,目前功能如下...
1 comment:
Apr 7, 2012

ScalaSTM 試用

›
STM( software transactional memory )是種 concurrency control  機制,相對於用 locking 進行同步化,更安全與簡單,以下使用帳戶轉帳的例子實作比較locking與STM 帳號轉帳案例 多組帳號同時以隨機金...
1 comment:
Mar 18, 2012

Random / Math.random() / ThreadLocalRandom

›
java.util.Random java.util.Random 亂數演算法會依賴 seed 數值產生亂數,並在產生亂數後重新產生 seed, 在 Multi-thread 下為了保證在各Thread取到不同的亂數, java.util.Random 在實作上使用 opt...
6 comments:
Feb 17, 2012

TOTP authentication demo 開發工具與佈署環境(Heroku)

›
延續前篇  使用 TOTP 與 Google Authenticator 實作 Two-Factor authentication  ,此篇說明使用到的工具與相關心得 Application Back-end Java slf4j Apache commons-...
Jan 22, 2012

[Java Performance]Chapter 3:JVM Overview

›
這篇談JVM的概觀與各元件用途與描述HotSpot VM在各元件上的優化技術 HotSpot VM High Level Architecture JVM 有三個主要元件: VM Runtime JIT Compiler Memory manager ...
‹
›
Home
View web version
Powered by Blogger.