能力强的人善于解决问题,有智慧的人善于绕过问题。 区别很微妙,小心谨慎做后者。
全部博文(399)
发布时间:2018-06-08 15:22:31
Immutable objects are also automatically thread-safe and have no synchronisation issues. They can also never exist in unknown or undesirable state because of an exception. Because all initialisation occurs at construction time, which is atomic in Java, any exception occurs before you have .........【阅读全文】
发布时间:2018-04-12 20:08:34
作者说It would be of some use to see stacktraces that extend down into the HikariCP classes (in the case of the first and second stacktraces above). Enabling DEBUG logging for com.zaxxer.hikari would also be useful. HikariCP is not terribly noisy. Debug logging would allow us to s.........【阅读全文】
发布时间:2018-04-12 17:37:28
High Availability (HA) of a system is achieved by incorporating specific features to reduce service downtime, typically: failover, load balancing and replication. These techniques can be easily incorporated into services deployed on multi-data center clouds. To some extent, HA features are currently available on public cloud providers but seriously limited by networking constraints. This is a horizontal use case that accommodates any cluster, or multi-tier, application. ......【阅读全文】
发布时间:2016-03-16 13:29:31
Kafka消费者分两类:1) 使用低级API2) 使用高级API高级Consumer API 只用在 需要消费数据但是不需要记录编移量,即上次读取的位置。 高级Consumer API 从 Zookeeper 的特定分区上存储上次读取的位置偏移量,这个编移量和 消费者一开始传给Kafka 集群的 Consumer Group 名称 一一对应. 所以要重复读取的话,只.........【阅读全文】
发布时间:2015-07-03 14:54:20
关于事务一致性和最终一致性的鉴别:<br /><br />When examining the use case (or story), ask whether it’s the job of the user executing the use case to make the data consistent.<br /><br />If it is, try to make it transactionally consistent, but only by adhering to the other rules of Aggregates..........【阅读全文】