From Eager Futures/Promises to Lazy Continuations: Evolving an Actor Library Based on Lessons Learned from Large-Scale Deployments(@FolMing), Zakhar (@onelxj), and Artur (@ArthurBandaryk) ## chapters (1) motivating futures/promises + actors (2) libprocess (3) revisiting the problem (4) evolution of libprocess (5) eventuals (6) scheduling scheduling (7) streams (8) type erasure ## chapters (1) motivating futures/promises + actors (2) libprocess (3) revisiting the problem (4) evolution of libprocess (5) eventuals (6) scheduling (7) semaphores 1973: actors 1974: monitors 1978: communicating sequential processes (CSP) 1987: statecharts ## possible solutions with threads 1963: mutexes, semaphores 1973: actors 1974: monitors 1978:0 码力 | 264 页 | 588.96 KB | 1 年前3
generic graph librariesbacon_number(size(actors)); for (auto&&[u, v] : bfs_edge_range(costars, 1)) { bacon_number[v] = bacon_number[u] + 1; } for (int i = 0; i < size(actors); ++i) { std::cout << actors[i] << relationships between actors forms a graph • A BFS of that graph gives each actor a “Bacon number” • Unfortunately, the co-star graph doesn’t actually exist • IMDB: • Movies table • Actors table • Movies-Actor bacon_number(size(actors)); for (auto&&[u, v] : bfs_edge_range(costars, 1)) { bacon_number[v] = bacon_number[u] + 1; } for (int i = 0; i < size(actors); ++i) { std::cout0 码力 | 76 页 | 6.59 MB | 1 年前3
Spring Framwork Data Access v5.3.36 SNAPSHOT} ) The following query finds and populates a list of domain objects: ## Java Listactors = this.jdbcTemplate.query( "select first_name, last_name from t_actor", (resultSet 中国大陆名); actor.setLastName(resultSet.中国大陆名); return actor; }); ## Kotlin val actors = jdbcTemplate.query("select first_name, last_name from t_actor") { rs, _ -> Actor(rs jdbcTemplate.update( "call SUPPORT.REFRESH_ACTORS_SUMMARY(?)", Long.valueOf(unionId)); Kotlin jdbcTemplate.update( "call SUPPORT.REFRESH_ACTORS_SUMMARY(?)", unionId.toLong()) More sophisticated 0 码力 | 197 页 | 2.76 MB | 2 年前3
SQLite, Firefox, and our small IMDB movie databasehave "Bill" in the name select * from movie where name like '%Bill%'; -- Find all actors and their roles who played in a movie -- with "Bill" in the name select fname, lname, role (') instead of (\') as in MySQL -- Table structure for table `actors` DROP TABLE IF EXISTS `actors`; CREATE TABLE `actors` ( `id` int(11) NOT NULL default '0', `first_name` varchar(100) PRIMARY KEY (`id`) ); -- Dumping data for table `actors` INSERT INTO `actors` VALUES (933, 'Lewis', 'Abernathy', 'M'); insert into `actors` values (2547, 'Andrew', 'Adamson'0 码力 | 22 页 | 1.83 MB | 2 年前3
OAM, Dapr and Rudr: The future of cloud native applicationsEnterprise Developers Being asked to develop resilient, scalable, microservice-based apps Functions and Actors are powerful programming models They write in many languages They want to leverage existing code _2.jpg) dapr API State management Publish and subscribe Resource bindings & triggers Actors Distributed tracing Extensible... ## Dapr: Build apps using any language with any framework Any Service-to-service invocation State management Publish and subscribe Resource bindings & triggers Actors Distributed tracing  ## Communication? • Abstraction: channels... or actors Two main cases in practice • concurrent queues • networking sockets io_context, resolver, acceptor0 码力 | 89 页 | 1.55 MB | 1 年前3
Dapr september 2023 security audit reporta topic to receive messages.| |4|Bindings|A bi-directional connection to an external service.| |5|Actors|An independent unit of computation.| |6|Observability|A series of components for logging, tracing https://github.com/dapr/dapr/blob/5aba3c9aa4ea9b3f388df125f9c66495b43c5c9e/pkg/http/api.go ## Threat actors A threat actor is an individual or group that intentionally attempts to exploit vulnerabilities sabotage. We identify the following threat actors below; For example, a fully untrusted user can also be a contributor to a 3rd-party library used by Dapr. actors for Dapr. A threat actor can assume multiple0 码力 | 47 页 | 1.05 MB | 2 年前3
Vitess security auditWe then cover how it interacts with the internal components of Vitess. Next, we specify the threat actors that could have a harmful impact on a VTA_{admin} deployment. Finally we exemplify several threat scenarios based on the observations we made when outlining the core components and the specified threat actors. We used the following sources for the threat modelling: - Vitess’s documentation including README aligned, but they are also different. Other components of Vitess have different attack vectors, threat actors and security designs. The threat model in this report is solely for Vitess's VTA_{Admin} component0 码力 | 41 页 | 1.10 MB | 2 年前3
The Future of Cloud Native Applications
with Open Application Model (OAM) and Daprmicroservice-based apps They write in many languages They want to leverage existing code Functions and Actors are powerful programming models ## What is holding back micro-service development? DaprRudrKubernetesMicroservices ArchitectureSession TypesC++Binary Session TypesProtocolInteraction安全审计漏洞供应链威胁建模VTAdminVitessSLSAOSS-FuzzThreat ModellingDistributed ApplicationMicroservicesHyperledger Fabricv1.4私有数据操作改进Node.js SDK













