using Queue Server for batch processingChing Yi Chan
?
This document discusses using queue services for batch processing. It involves converting data into jobs that are sent to a job queue. Workers then pull jobs from the queue and consume them, sending results to a result queue. An aggregator pulls results from the result queue to generate reports or update the original data. Examples provided are processing video data to extract resolution and checking streaming status. The queues and workers can be deployed locally or on the cloud for scalability.
The document discusses using an "active cache" to reduce response times for web applications. An active cache stores the business logic methods and their arguments, allowing the cache to automatically update itself by re-running methods in the background. This is compared to a passive cache which only updates when explicitly called. Key challenges with active caching include defining cache keys, designing the updater and scheduler, and handling class definition changes that break deserialization.
Fabric is a Python library and command-line tool that allows streamlining SSH administration tasks. It can execute commands both locally and remotely on servers. Fabric provides abstractions like tasks and contexts that allow commands to be executed in parallel or sequentially on different hosts. This improves on shell scripts by separating concerns of who executes commands and where. Thinking in Fabric contexts makes tasks more reusable.
This document provides an overview of Java web programming and building a simple web application using Java technologies. It discusses using JDBC for database access, implementing servlets and filters, using JSP for views, and different web programming models including Model 1 where business logic is in JSPs and Model 2 where it is separated out to servlets. Code examples and links to GitHub repositories are provided for a TODO list application built using these techniques.
This document provides links to two resources related to audio encoding configuration. The first link is to a GitHub Gist containing Lame configuration scripts. The second link is to a GitHub repository called "jug.ndk.encoder" that contains questions and answers about audio encoding.
The document introduces the JUnit testing framework and discusses how automatic unit testing can help save time by dividing testing into smaller units and providing a uniform testing tool. It explains that unit testing involves dividing code into classes or related classes, then writing test cases that specify conditions, states, and behaviors to test before and after each change is made to verify expected results. The document also outlines the three steps - arrange, act, and assert - for writing test cases to set up object snapshots, invoke methods to create changes, and check final states match expectations.
2. WHAT IS OSGi ? The OSGi? specifications define a standardized, component-oriented, computing environment for networked services that is the foundation of an enhanced service-oriented architecture. Adding an OSGi Service Platform to a networked device (embedded as well as servers), adds the capability to manage the lifecycle of the software components in the device from anywhere in the network. Software components can be installed, updated, or removed on the fly without ever having to disrupt the operation of the device.
3. WHAT IS OSGi ? The OSGi? specifications define a standardized, component-oriented, computing environment for networked services that is the foundation of an enhanced service-oriented architecture. Adding an OSGi Service Platform to a networked device (embedded as well as servers), adds the capability to manage the lifecycle of the software components in the device from anywhere in the network. Software components can be installed, updated, or removed on the fly without ever having to disrupt the operation of the device. WHO CARE ?
9. Where is Service ? Service 建構在 Module 層之上 受 Module Life cycle 影響 在 Module 內使用 ServiceRegistry 註冊 Service 那麼, Bundle(App) 就能使用 Service
10. Quick Tutorial In Bundle OSGi 模組的基本單位 建立 Bundle 的步驟 寫一些類別 ! ? 在 META/MANIFEST.MF 填些什麼? 包成 JAR ! ?
11. Hello Bundle Activator & MANIFEST.MF Activator/hook method Start Stop MANIFEST.MF Make jug.hello bundle with Activator print hello & bye. Run and use start/stop.
14. Bundle - visibility 透過 Import-Package 使用 package Import-Package: jug.hello.api B A import jug.hello.api .HelloWorld; class Foo{ public void hello(){ new HelloWorld().hello(); } } jug.hello.api
15. Bundle – package propety Bundle: jug.hello.api.v1 Export-Package: jug.hello.api; version ="1.0.0" Bundle: jug.hello.api.v2 Export-Package: jug.hello.api; version =“2.0.0"