精华内容
下载资源
问答
  • Styles

    2020-12-26 16:13:25
    <p>Added dat-design and set up Sass, in order to re-use all the base styles we have in dat-design. (using Sass instead of plain CSS allows us to access variables, mixins etc). <p>I noticed 's ...
  • <div><p>Sketch 51 announced Styles Library. Now we can use styles from a library as we use symbols from the symbol library. <p>Previously I used Style Libraries plugin to import styles from lib to a ...
  • Inline styles

    2020-12-27 07:28:18
    <p>When you embed a videogular2 player onto a page it is pulling in a load of CSS styles and inlining them onto my page which means if I want to override any of the styles I have to use a load of !...
  • Extending Styles

    2020-11-30 05:34:12
    Extending styles is a common feature in css-in-js solutions (<a href="https://www.styled-components.com/docs/basics#extending-styles">styled-components) and provides the necessary flexibility without...
  • Delete styles

    2021-01-11 20:11:32
    It is related to the list of styles that appears on the light table, there are several buttons to interact with the list that exists, one of them is to delete, which only allows you to do it one by ...
  • <div><p>This line: ...<p>Creates inline styles. Virtually all css rules coming from external css files are ignored.</p><p>该提问来源于开源项目:anthonyjgrove/react-google-login</p></div>
  • Custom styles

    2020-12-26 20:28:39
    <div><p>is there any possibility to disable default styles? Package is awesome 🥇 (especially directive way of defining dialogs!!! 🔥 ), but it's little bit hard to customize styles ...
  • Typographic styles

    2020-12-01 13:21:55
    <div><p>Send sheet in sketch file with typographic styles + mockups with applied styles.</p><p>该提问来源于开源项目:mozilla/foundation.mozilla.org</p></div>
  • Bootstrap styles

    2021-01-08 08:16:26
    I wanna use bootstrap styles in my template. I included styles in my html template <code><link rel="stylesheet" type="text/css" href="/less/bootstrap.css">...
  • <p>Since recently, when I move a symbol to my library I lose text styles and layer styles and need to reapply them in the library. <p>I keep all the style attributes but not the link to the style. <p>...
  • Link styles

    2021-01-11 21:19:55
    <div><p>Current link styles use border-bottom , but the line is in the middle of the leading, and thus becomes obtrusive. <p>This pull requests is based on ...
  • Renamed styles

    2021-01-08 10:32:53
    <p>Is this normal that, in the last update of Zotero (4.0.15), renamed styles are still not updated? I checked, and every version (master, 4.0, 4.0_fulltext) of /resource/schema/renamed-styles.json ...
  • <p>The editor styles are being loaded before & overwritten by the main styles. <p>Screenshot below <p>https://cl.ly/62ceaf8b511e</p> <h3>Steps to Reproduce <ul><li>Create Guten-Block in WP 5.x...
  • <div><p>plits out the basic jwplayer layout files from control specific styles. Each set of styles are contained in separate folders. Controls styles are only included when model.controls is set to ...
  • Architecture styles

    2019-05-05 19:59:50
    Architecture styles 目录 Architecture styles A quick tour of the styles N-tier Web-Queue-Worker Microservices CQRS Event...

                                         Architecture styles

    目录

                                         Architecture styles

    A quick tour of the styles

    N-tier

    Web-Queue-Worker

    Microservices

    CQRS

    Event-driven architecture

    Big Data, Big Compute

    Architecture styles as constraints

    Consider challenges and benefits


     

    An architecture style is a family of architectures that share certain characteristics. For example, N-tier is a common architecture style. More recently, microservice architectures have started to gain favor. Architecture styles don't require the use of particular technologies, but some technologies are well-suited for certain architectures. For example, containers are a natural fit for microservices.

    We have identified a set of architecture styles that are commonly found in cloud applications. The article for each style includes:

    • A description and logical diagram of the style.
    • Recommendations for when to choose this style.
    • Benefits, challenges, and best practices.
    • A recommended deployment using relevant Azure services.

    A quick tour of the styles

    This section gives a quick tour of the architecture styles that we've identified, along with some high-level considerations for their use. Read more details in the linked topics.

    N-tier

    N-tier is a traditional architecture for enterprise applications. Dependencies are managed by dividing the application into layersthat perform logical functions, such as presentation, business logic, and data access. A layer can only call into layers that sit below it. However, this horizontal layering can be a liability. It can be hard to introduce changes in one part of the application without touching the rest of the application. That makes frequent updates a challenge, limiting how quickly new features can be added.

    N-tier is a natural fit for migrating existing applications that already use a layered architecture. For that reason, N-tier is most often seen in infrastructure as a service (IaaS) solutions, or application that use a mix of IaaS and managed services.

    代码中经常用的就是分层,开发过java大型项目的都会经历controller、service、manager、dao等分层,其实与代码的艺术之职责分离原则很相似。

    Web-Queue-Worker

    For a purely PaaS solution, consider a Web-Queue-Worker architecture. In this style, the application has a web front end that handles HTTP requests and a back-end worker that performs CPU-intensive tasks or long-running operations. The front end communicates to the worker through an asynchronous message queue.

    Web-queue-worker is suitable for relatively simple domains with some resource-intensive tasks. Like N-tier, the architecture is easy to understand. The use of managed services simplifies deployment and operations. But with a complex domains, it can be hard to manage dependencies. The front end and the worker can easily become large, monolithic components that are hard to maintain and update. As with N-tier, this can reduce the frequency of updates and limit innovation.

    Microservices

    If your application has a more complex domain, consider moving to a Microservices architecture. A microservices application is composed of many small, independent services. Each service implements a single business capability. Services are loosely coupled, communicating through API contracts.

    Each service can be built by a small, focused development team. Individual services can be deployed without a lot of coordination between teams, which encourages frequent updates. A microservice architecture is more complex to build and manage than either N-tier or web-queue-worker. It requires a mature development and DevOps culture. But done right, this style can lead to higher release velocity, faster innovation, and a more resilient architecture.

    CQRS

    The CQRS (Command and Query Responsibility Segregation) style separates read and write operations into separate models. This isolates the parts of the system that update data from the parts that read the data. Moreover, reads can be executed against a materialized view that is physically separate from the write database. That lets you scale the read and write workloads independently, and optimize the materialized view for queries.

    CQRS makes the most sense when it's applied to a subsystem of a larger architecture. Generally, you shouldn't impose it across the entire application, as that will just create unneeded complexity. Consider it for collaborative domains where many users access the same data.

    案例1:重构或代码的艺术相关也经常提到,一个类的职责功能过多,需要抽离,比如dao类,经常查询与修改放到一个类中,如果类的代码行数很多,我们一般会把查询与修改分离成两个dao类。

    案例2:读写分离,如后端架构升级过程中一般经历的mysql读写分离。

    Event-driven architecture

    Event-Driven Architectures use a publish-subscribe (pub-sub) model, where producers publish events, and consumers subscribe to them. The producers are independent from the consumers, and consumers are independent from each other.

    Consider an event-driven architecture for applications that ingest and process a large volume of data with very low latency, such as IoT solutions. The style is also useful when different subsystems must perform different types of processing on the same event data.

    用到过消息队列的情况下,一般就是这个架构模式。支付、下订单有时候也会走消息通道。

     

    Big Data, Big Compute

    Big Data and Big Compute are specialized architecture styles for workloads that fit certain specific profiles. Big data divides a very large dataset into chunks, performing paralleling processing across the entire set, for analysis and reporting. Big compute, also called high-performance computing (HPC), makes parallel computations across a large number (thousands) of cores. Domains include simulations, modeling, and 3-D rendering.

    Architecture styles as constraints

    An architecture style places constraints on the design, including the set of elements that can appear and the allowed relationships between those elements. Constraints guide the "shape" of an architecture by restricting the universe of choices. When an architecture conforms to the constraints of a particular style, certain desirable properties emerge.

    For example, the constraints in microservices include:

    • A service represents a single responsibility.
    • Every service is independent of the others.
    • Data is private to the service that owns it. Services do not share data.

    By adhering to these constraints, what emerges is a system where services can be deployed independently, faults are isolated, frequent updates are possible, and it's easy to introduce new technologies into the application.

    Before choosing an architecture style, make sure that you understand the underlying principles and constraints of that style. Otherwise, you can end up with a design that conforms to the style at a superficial level, but does not achieve the full potential of that style. It's also important to be pragmatic. Sometimes it's better to relax a constraint, rather than insist on architectural purity.

    The following table summarizes how each style manages dependencies, and the types of domain that are best suited for each.

     

     

    Architecture style Dependency management Domain type
    N-tier Horizontal tiers divided by subnet Traditional business domain. Frequency of updates is low.
    Web-Queue-Worker Front and backend jobs, decoupled by async messaging. Relatively simple domain with some resource intensive tasks.
    Microservices Vertically (functionally) decomposed services that call each other through APIs. Complicated domain. Frequent updates.
    CQRS Read/write segregation. Schema and scale are optimized separately. Collaborative domain where lots of users access the same data.
    Event-driven architecture. Producer/consumer. Independent view per sub-system. IoT and real-time systems
    Big data Divide a huge dataset into small chunks. Parallel processing on local datasets. Batch and real-time data analysis. Predictive analysis using ML.
    Big compute Data allocation to thousands of cores. Compute intensive domains such as simulation.
         

    Consider challenges and benefits

    Constraints also create challenges, so it's important to understand the trade-offs when adopting any of these styles. Do the benefits of the architecture style outweigh the challenges, for this subdomain and bounded context.

    Here are some of the types of challenges to consider when selecting an architecture style:

    • Complexity. Is the complexity of the architecture justified for your domain? Conversely, is the style too simplistic for your domain? In that case, you risk ending up with a "big ball of mud", because the architecture does not help you to manage dependencies cleanly.

    • Asynchronous messaging and eventual consistency. Asynchronous messaging can be used to decouple services, and increase reliability (because messages can be retried) and scalability. However, this also creates challenges such as always-once semantics and eventual consistency.

    • Inter-service communication. As you decompose an application into separate services, there is a risk that communication between services will cause unacceptable latency or create network congestion (for example, in a microservices architecture).

    • Manageability. How hard is it to manage the application, monitor, deploy updates, and so on?

     

    来自:https://docs.microsoft.com/en-us/azure/architecture/guide/architecture-styles/index

     

    展开全文
  • <div><p>After installing a new <a href="http://foundation.zurb.com/docs/sass.html">Foundation 5 Sass site, and doing a <code>compass watch, it has the correct Foundation 5 styles: <p><img alt="blog-...
  • <p>This can be addressed by flipping the order of the spreads in <code>index.js</code> so that the user provided styles - if they exist - are applied after the defaults but before the styles that are ...
  • I tried using the ReValue Command to rename all the object styles (line styles) inside a family. But I noticed I have to have the lines selected and it will only change those styles. There are other ...
  • If you for example paste a responsive embed code from vimeo, it will just remove the styles and basically make it look broken. This means that it is basically impossible for an author to properly ...
  • Aesop Styles removed

    2020-12-08 19:54:31
    <div><p>Hey there, it looks as though at some point after 1.6.2 default Aesop styles have been removed, namely: <p><code><style id='ai-core-style-inline-css' type='text/css'...
  • Refactor suggested styles

    2020-12-09 06:08:49
    from <code>utils/styles/sizes</code></li>[ ] <code>src/components/Dist/styles.ts#L11</code> - use <code>fontWeight.bold</code> from <code>utils/styles/sizes</code></li>[ ] <code>src/components/Engines...
  • Inline Styles?

    2020-12-09 04:47:34
    <div><p>This is a discussion about having inline styles within our react components. <p>Ive seen a few discussions around having inline styles in your component. These inline styles would be purely ...
  • Override WooCommerce styles

    2021-01-07 11:45:01
    <p>What would be the best way prioritise FoundationPress styles over the default WooCommerce styles? I would like to base my design on as much original WC styles as possible, but add alterations.</p>...
  • Update Springer styles

    2020-12-02 20:50:51
    tab, which pulls out the metadata details required to generate the dependent styles. I also added language mapping to the "mapping-styles" tab. <p>Travis is rather unhappy, and there are ...
  • Java code styles

    2020-12-08 18:04:42
    <div><p>Hi, what you guys think about code styles (code formatting)? Is an important thing for quality? You use standard (AS) code styles or custom one (like square code styles). <p>Thanks!</p><p>该...
  • removing Utility styles

    2020-12-31 14:05:44
    Utility styles that are in the bottom of the page rewrites all my styles, and i have no clue how to delete em. And what was the reason to put em there?</p><p>该提问来源于开源项目:xaksis/vue-...
  • Weirdness with styles

    2020-12-09 10:06:12
    s something kind of odd with styles in OGCServer. In loadXML in BaseWMSFactory you have an if / else branch on style_count, the number of styles for a layer in the xml file. Zero raises an error; ...
  • Common styles ?

    2021-01-06 11:53:39
    <div><p>Is there any way to create Common styles since I'm repeating a lot of code. <p>Currently, my approach is <pre><code>js <view style="{[styles.commonStyle," styles.a></...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 42,913
精华内容 17,165
关键字:

styles