摘要:http://cloudurable.com/blog/kafka architecture/index.html 静态解析 zookeeper启动 配置kafka 启动 测试
阅读全文
涛子 - 简单就是美成单纯魁增,永继振国兴,克复宗清政,广开家必升 |
|
03 2018 档案
摘要:http://cloudurable.com/blog/kafka architecture/index.html 静态解析 zookeeper启动 配置kafka 启动 测试
阅读全文
摘要:https://www.jianshu.com/p/45ffd2a84143 内核配置 cat /etc/sysctl.conf /etc/hosts /etc/redis sentinel.conf /etc/sentinel_26380.conf /etc/sentinel_26381.conf
阅读全文
摘要:bash 加密算法 ======================== ======= ======================== Module name Type Description ======================== ======= ====================
阅读全文
摘要:https://gist.github.com/zaccrites/c5bcf96ed90907d92042 https://gist.github.com/Leo G/99dd3e1147498daade61 https://gist.github.com/alexanderjulo/913beb
阅读全文
摘要:Make a Request Passing Parameters In URLs Response Content and Status Code Binary Response Content JSON Request 默认使用标准库json进行序列化,如果想快一点的话,可以使用第三方库ujso
阅读全文
摘要:使用asyncio.Queue 使用Queue.task_done 和 Queue.join:
阅读全文
摘要:Threads Subprocess Run a subprocess and read its output Communicate with a subprocess using standard streams
阅读全文
摘要:server client
阅读全文
摘要:性能包括2部分 Architecture: Worker processes Stream limits TCP_NODELAY TCP_QUICKACK Tune the Linux kernel
阅读全文
摘要:```python
import aiohttp
import asyncio
import async_timeout async def fetch(session, url): async with async_timeout.timeout(10): async with session.get(url) as response: retu...
阅读全文
摘要:如何调度协程,并发运行 asyncio.gather方法可以聚合协程or future
阅读全文
摘要:利用asyncio的event loop,编写和调度协程 coroutine [,kəuru:'ti:n] n. 协程 Simple coroutine(调用1个协程) Creating tasks(调用多个协程) Stopping the loop
阅读全文
摘要:https://www.cnblogs.com/python life/articles/4549996.html https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/00143178
阅读全文
摘要:MixIn 在设计类的继承关系时,通常,主线都是单一继承下来的,例如,Ostrich继承自Bird。但是,如果需要“混入”额外的功能,通过多重继承就可以实现,比如,让Ostrich除了继承自Bird外,再同时继承Runnable。这种设计通常称之为MixIn。 为了更好地看出继承关系,我们把Runn
阅读全文
摘要:什么是闭包? 首先还得从基本概念说起,什么是闭包呢?来看下维基上的解释: 在计算机科学中,闭包(Closure)是词法闭包(Lexical Closure)的简称,是引用了自由变量的函数。这个被引用的自由变量将和这个函数一同存在,即使已经离开了创造它的环境也不例外。所以,有另一种说法认为闭包是由函数
阅读全文
摘要:库(Libraries) 库类似合约,实现仅在专门地址部署一次,使用EVM的DELEGATECALL的功能重复使用的目的。意思是当库函数被调用后,代码执行在被调用的合约的环境。例如,使用this调用合约,可以访问的调用合约的storage.孤立的库代码仅能访问变量,不能修改变量 如何使用库的memo
阅读全文
|