首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏阿林前端开发攻城狮

    使用 host aggregates 逻辑分离这两个 hypervisors

    Host aggregates 现在我们需要使用 host aggregates 逻辑分离这两个 hypervisors,为了实现这个,我们创建了两个 aggregates: $ nova aggregate-create           | +----+-----------------------+-------------------+-------+----------+ 现在添加 hypervisor 到他们各自的 aggregates

    28710发布于 2021-09-24
  • 来自专栏我思故我在

    .Net微服务实践(三):Ocelot配置路由和请求聚合

    区别就是再每一个路由配置下多了一个 Key, Key的值可以任意定义(但建议还是按业务含义定义) 在Ocelot.json中添加如下配置 "Aggregates": [ { "ReRouteKeys ": [ "Orders", "Products" ], "UpstreamPathTemplate": "/api/aggregates" } ] 注意Aggregates配置是和在ReRoutes配置平级的 { "ReRoutes": [], "Aggregates": [], "GlobalConfiguration ": {} } 示例说明: 当访问http://localhost:5000/api/aggregates, 会同时返回订单数据和产品数据 运行示例进行验证 既然是多个请求聚合,那么问题来了: 如果其中一个服务宕机 我们停止订单服务,再次当访问http://localhost:5000/api/aggregates, 结果返回500 如果其中一个服务不是宕机,而是返回500,会怎么样?

    1.1K10发布于 2020-04-08
  • 来自专栏HappenLee的技术杂谈

    ClickHouse源码笔记2:聚合流程的实现

    ; const size_t aggregates_size; /// The settings of approximate calculation of GROUP const bool overflow_row; /// Do we need to put into AggregatedDataVariants::without_key aggregates (aggregates_), keys_size(keys.size()), aggregates_size(aggregates.size()), overflow_row(overflow_row ; ++i) aggregate_columns[i].resize(params.aggregates[i].arguments.size()); /** Constant + 1); aggregate_functions_instructions[params.aggregates_size].that = nullptr; std::vector<

    2.4K22发布于 2020-07-20
  • 来自专栏码匠的流水账

    聊聊flink Table的AggregateFunction

    DataSetAggFunction, DataSetFinalAggFunction]) = { ​ val needRetract = false val (aggInFields, aggregates outputType ) ​ val aggOutFields = aggOutMapping.map(_._1) ​ if (doAllSupportPartialMerge(aggregates , aggInFields, aggregates.indices.map(_ + groupings.length).toArray, isDistinctAggs = false, partialResults = true, groupings, None, groupings.length + aggregates.length generator.generateAggregations( "DataSetAggregateHelper", inputFieldTypeInfo, aggregates

    3K20发布于 2019-02-09
  • 来自专栏码匠的流水账

    聊聊go.cqrs的AggregateRoot

    序 本文主要研究一下go.cqrs的AggregateRoot AggregateRoot //AggregateRoot is the interface that all aggregates should repository. // // Importantly an aggregate with one event applied will be at version 0 // this allows the aggregates repository. // // Importantly an aggregate with one event applied will be at version 0 // this allows the aggregates

    35610发布于 2021-04-16
  • 来自专栏程序员吾真本

    致想给遗留系统写自动化单元测试的开发团队——事件风暴之父的工作坊实录之二:软件开发设计

    Decision Command(浅蓝,可以对其编写自动化测试)可以对应 Aggregates、Entities 或 Value Objects 里面的行为。 Aggregate(黄色大报事贴,可以对其编写自动化测试)可以对应 Aggregates ,而 Aggregates 可以由 Factory 来创建,之后可以保存在 Repositories 里面。 Policy(紫色,可以对其编写自动化测试)可以对应 Aggregates、Entities 或 Value Objects 里面的行为。 ? 我偏好于“对称性”的领域建模,即将 Aggregates 将 Commands 转化为 Events,而 Policies 对 Events 作出响应并调度 Commands 来进行工作。

    49830发布于 2018-08-20
  • 来自专栏周拱壹卒

    《Learning Domain-Driven Design》书摘

    Other processes, aggregates, or even external systems can subscribe to and execute their own logic in The same is true for aggregates. An aggregate can only be modified by its own methods. Aggregates A hierarchy of entities sharing a transactional boundary. In a domain model, the business entities (aggregates and value objects) should have no dependency and Integrating Aggregates Outbox The outbox pattern (Figure 9-11) ensures reliable publishing of domain

    33310编辑于 2024-04-23
  • 来自专栏码匠的流水账

    聊聊go.cqrs的AggregateRoot

    microservices-and-ddd-aggregate-root-to-microservice.png AggregateRoot //AggregateRoot is the interface that all aggregates repository. // // Importantly an aggregate with one event applied will be at version 0 // this allows the aggregates repository. // // Importantly an aggregate with one event applied will be at version 0 // this allows the aggregates

    40400发布于 2021-04-07
  • 来自专栏Spark学习技巧

    3,Structured Streaming使用checkpoint进行故障恢复

    ")) val wordCounts = words.groupBy("value").count() val query = wordCounts.writeStream.queryName("aggregates complete").option("checkpointLocation", "memory/").format("memory").start() spark.sql("select * from aggregates

    1.3K40发布于 2018-06-22
  • 来自专栏技术杂记

    Cassandra Cqlsh 2

    none | 0x73616c7465645f68617368 | regular | -1 | text system_schema | aggregates asc | 0x6167677265676174655f6e616d65 | clustering | 0 | text system_schema | aggregates asc | 0x617267756d656e745f7479706573 | clustering | 1 | frozen<list<text>> system_schema | aggregates DESCRIBE AGGREGATES Output the names of all user-defined-aggregates in the current keyspace system_schema ---------------------- tables triggers views keyspaces dropped_columns functions aggregates

    1.8K10发布于 2021-08-12
  • 来自专栏依乐祝

    Ocelot简易教程(四)之请求聚合以及服务发现

    最后我们再Aggregates节点中的ReRouteKeys属性中加入我们刚刚指定的两个Key从而组成了两个ReRoutes的聚合。 注意:不要把Aggregates中UpstreamPathTemplate设置的跟ReRoutes中的UpstreamPathTemplate设置成一样。 下面我们先上个实例例子先! "Get", "Post" ], "Key": "Order", "Priority": 2 } 在ocelot.all.json中加入聚合配置,如下所示: "Aggregates Good", "Order" ], "UpstreamPathTemplate": "/GetOrderDetail/{id}" } ] 注意:这里Aggregates 配置可能看起来像: { "ReRoutes": [], "Aggregates": [], "GlobalConfiguration": { "RequestIdKey

    1.2K20发布于 2018-10-10
  • 来自专栏Linux系列

    MongoDB教程(九):java集成mongoDB

    com.mongodb.client.MongoCollection; import com.mongodb.client.AggregateIterable; import com.mongodb.client.model.Aggregates AggregateIterable<Document> results = collection.aggregate( Arrays.asList( Aggregates.match (new Document("status", "A")), Aggregates.group("$customer_id", Accumulators.sum

    67720编辑于 2024-07-20
  • 来自专栏ImportSource

    NoSQL Sharding 分片

    aggregates leap out as an obvious unit of distribution. If you know that most accesses of certain aggregates are based on a physical location, you can place This means that you should try to arrange aggregates so they are evenly distributed across the nodes In some cases, it’ s useful to put aggregates together if you think they may be read in sequence. Despite the fact that sharding is made much easier with aggregates, it’s still not a step to be taken

    2K120发布于 2018-05-04
  • 来自专栏码匠的流水账

    聊聊eventhorizon的Aggregate

    AggregateStore eventhorizon/aggregate.go // AggregateStore is responsible for loading and saving aggregates aggregatestore.go // AggregateStore is an aggregate store that uses a read write repo for // loading and saving aggregates

    52800发布于 2021-03-31
  • 来自专栏Spark学习技巧

    1,StructuredStreaming简介

    .writeStream .outputMode("complete") .format("console") .start() memory sink // Have all the aggregates in an in-memory table aggDF .writeStream .queryName("aggregates") // this query name will be the table name .outputMode("complete") .format("memory") .start() spark.sql("select * from aggregates

    1.1K90发布于 2018-03-20
  • 来自专栏ImportSource

    NoSQL如何构建数据存储模型

    As mentioned earlier, when modeling data aggregates we need to consider how the data is going to be read as well as what are the side effects on data related to those aggregates. Using aggregates this way allows for read optimization, but we have to push the orderId reference into 图 3.3 把Customer的存储和Order分开 Aggregates can also be used to obtain analytics; for example, an aggregate

    2K130发布于 2018-05-04
  • 来自专栏c++与qt学习

    CMU 15-445 -- 关系型数据库重点概念回顾 - 01

    15-721 A course(cid, name) cid name 15-445 Database Systems 15-721 Advanced Database Systems ---- Aggregates Aggregates 通常返回一个值,它们包括: AVG(col) MIN(col) MAX(col) SUM(col) COUNT(col) 举例如下: count.sql SELECT COUNT ---- Group By group by 就是把记录按某种方式分成多组,对每组记录分别做 aggregates 操作,如求每门课所有学生的 GPA 平均值: SELECT AVG(s.gpa), e.cid FROM enrolled AS e, student AS s WHERE e.sid = s.sid GROUP BY e.cid; 所有非 aggregates 操作的字段,都必须出现在 group

    49250编辑于 2023-10-11
  • 来自专栏码匠的流水账

    聊聊eventhorizon的Aggregate

    方法 AggregateStore eventhorizon/aggregate.go // AggregateStore is responsible for loading and saving aggregates aggregatestore.go // AggregateStore is an aggregate store that uses a read write repo for // loading and saving aggregates

    54520发布于 2021-04-16
  • 来自专栏安全漏洞环境学习

    CVE-2020-7471 Django StringAgg SQL Injection漏洞复现

    通过将精心设计的分隔符传递给contrib.postgres.aggregates.StringAgg实例,可以打破转义并注入恶意SQL。 从上面的代码中,我们知道漏洞函数位于模块StringAgg之中 from django.contrib.postgres.aggregates import StringAgg 官方对 delimiter

    2K20发布于 2020-02-25
  • 来自专栏技术杂记

    Beats 基础1

    harvester reads a single log file for new content and sends the new log data to the spooler, which aggregates

    32520编辑于 2022-02-11
领券