We use Gearman for managing queue system. This covers why we should use a queue in many situations on web-based interface as well as server-side application.
Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. In other words, it is the nervous system for how distributed processing communicates.
We use Gearman for managing queue system. This covers why we should use a queue in many situations on web-based interface as well as server-side application.
Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. In other words, it is the nervous system for how distributed processing communicates.
Gearman is a framework for writing distributed applications across many nodes. It allows you to do work in parallel, load balance processes and write applications across several programming languages. In this presentation we'll learn how to get started writing Gearman-powered applications in Perl.
Queues can provide parallel processing, cross language scripting and more! The talk was focused on Gearman but the principles apply to any alternative.
Faster PHP apps using Queues and WorkersRichard Baker
PHP apps typically perform tasks in a synchronous manner; Resizing an image or sending a push notification. For most applications this works well, but as apps grow or experience increased traffic, each task adds extra milliseconds to a request, leaving users waiting.
A common solution is to defer these tasks to the background using a cron task. However, there is a better way. Job queues not only help to decouple your application and improve resilience but will also cut request times.
In this talk I we’ll explore some common queue systems; the features and tradeoffs of each solution, what to queue, refactoring existing code into jobs, and running workers. By the end you’ll be ready to build your next app one job at a time.
DevOps is a large part of a company of any size. In the 9+ years that I have been a professional developer I have always taken an interest in DevOps and have been the "server person" for most of the teams I have been a part of. I would like to teach others how easy it is to implement modern tools to make their everyday development and development processes better. I will cover a range of topics from "Stop using WAMP/MAMP and start using Vagrant", "version control isn't renaming files", "Automate common tasks with shell scripts / command line PHP apps" and "From Vagrant to Production".
It's no denying that rich Javascript applications (sometimes called One Page Applications) are a big thing, but what if you want to leverage Drupal on the backend, or have an existing site? Tools like Angular.JS and EmberJS are great when you have an API, but Drupal 7 doesn't really have an API layer. I'll explore the parts of a one page application and how to integrate it into either an existing or a new Drupal site, and the pitfalls that one must watch out for.
This talk was presented at OSCON 2009 and YAPC::NA 2009. The choices discussed here are still relevant, although Plack has opened up some new options. For a more up-to-date take on this material I would recommend Tatsuhiko Miyagawa's most recent Plack/PSGI talks.
Why Symfony2 is greate? Adam, Symfony2 Backend Developer had a speech during AKAICamp#10 about this framework. Why choose Symfony? Symfony is a leading PHP framework to create web applications and websites. There are 1,000+ code contributors to the framework project and 300,000+ Symfony developers. Symfony embraces and promotes best practices, professionalism, and standardization.
Mad scalability: Scaling when you are not GoogleAbel Muíño
A brief history of how Cabify grew during the last couple of years without using cloud platforms like AWS or Google Cloud
I gave this talk at the madScalability meet up on Madrid, March 2017.
Gearman is a framework for writing distributed applications across many nodes. It allows you to do work in parallel, load balance processes and write applications across several programming languages. In this presentation we'll learn how to get started writing Gearman-powered applications in Perl.
Queues can provide parallel processing, cross language scripting and more! The talk was focused on Gearman but the principles apply to any alternative.
Faster PHP apps using Queues and WorkersRichard Baker
PHP apps typically perform tasks in a synchronous manner; Resizing an image or sending a push notification. For most applications this works well, but as apps grow or experience increased traffic, each task adds extra milliseconds to a request, leaving users waiting.
A common solution is to defer these tasks to the background using a cron task. However, there is a better way. Job queues not only help to decouple your application and improve resilience but will also cut request times.
In this talk I we’ll explore some common queue systems; the features and tradeoffs of each solution, what to queue, refactoring existing code into jobs, and running workers. By the end you’ll be ready to build your next app one job at a time.
DevOps is a large part of a company of any size. In the 9+ years that I have been a professional developer I have always taken an interest in DevOps and have been the "server person" for most of the teams I have been a part of. I would like to teach others how easy it is to implement modern tools to make their everyday development and development processes better. I will cover a range of topics from "Stop using WAMP/MAMP and start using Vagrant", "version control isn't renaming files", "Automate common tasks with shell scripts / command line PHP apps" and "From Vagrant to Production".
It's no denying that rich Javascript applications (sometimes called One Page Applications) are a big thing, but what if you want to leverage Drupal on the backend, or have an existing site? Tools like Angular.JS and EmberJS are great when you have an API, but Drupal 7 doesn't really have an API layer. I'll explore the parts of a one page application and how to integrate it into either an existing or a new Drupal site, and the pitfalls that one must watch out for.
This talk was presented at OSCON 2009 and YAPC::NA 2009. The choices discussed here are still relevant, although Plack has opened up some new options. For a more up-to-date take on this material I would recommend Tatsuhiko Miyagawa's most recent Plack/PSGI talks.
Why Symfony2 is greate? Adam, Symfony2 Backend Developer had a speech during AKAICamp#10 about this framework. Why choose Symfony? Symfony is a leading PHP framework to create web applications and websites. There are 1,000+ code contributors to the framework project and 300,000+ Symfony developers. Symfony embraces and promotes best practices, professionalism, and standardization.
Mad scalability: Scaling when you are not GoogleAbel Muíño
A brief history of how Cabify grew during the last couple of years without using cloud platforms like AWS or Google Cloud
I gave this talk at the madScalability meet up on Madrid, March 2017.
SharePoint 2010 - Installation from the Ground UpDan Usher
Have you ever wondered how to install SharePoint 2010 properly using PowerShell so as to avoid those random numbers that show up in your service application databases that end up showing up when you use the Configuration Wizard? Would you prefer to not just be a Principal Button Clicker that clicks “Next, Next, Next, Next, Next” to install SharePoint? Do you want to learn how to do things “the right way?”
Attend this half-day workshop and we’ll walk through step by step setting up SharePoint 2010 using PowerShell in a multi-server farm environment. This session will include:
• Installing SharePoint Prerequisites using a configuration file and pre-downloaded components
• Configuring the SharePoint platform using PowerShell
• Creating and Configuring Service Applications with wholly named databases
• Configuring Integrated Windows Authentication using Kerberos
• Provision and Configure the User Profile Service
After this session, you’ll have a solid foundational knowledge of how to properly configure SharePoint in an Integrated Windows Authentication Windows Networking Environment that is both repeatable and takes into consideration caveats that most “auto installer” scripts cannot account for.
Dynamo Systems - QCon SF 2012 PresentationShanley Kane
A look at Dynamo-based systems: the architectural principles, use cases and requirements; where they differ from relational databases; and where they are going.
Full blown of useful and highly technical information on SQL Server 2005 and 2008 High Availabilty features.
Included benchmarks results on: SQL Server 2005 vs. 2008 and Conventional vs. Solid State Devices.
Petabytes of Data and No Servers: Corteva Scales DNA Analysis to Meet Increas...Capgemini
Petabytes of Data and No Servers: Corteva Scales DNA Analysis to Meet Increasing Business Demand - At #reInvent, join Corteva and Sogeti as they share their journey from petabytes of data & no servers to success in meeting increasing business demand.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
The field of Information retrieval (IR) is currently undergoing a transformative shift, at least partly due to the emerging applications of generative AI to information access. In this talk, we will deliberate on the sociotechnical implications of generative AI for information access. We will argue that there is both a critical necessity and an exciting opportunity for the IR community to re-center our research agendas on societal needs while dismantling the artificial separation between the work on fairness, accountability, transparency, and ethics in IR and the rest of IR research. Instead of adopting a reactionary strategy of trying to mitigate potential social harms from emerging technologies, the community should aim to proactively set the research agenda for the kinds of systems we should build inspired by diverse explicitly stated sociotechnical imaginaries. The sociotechnical imaginaries that underpin the design and development of information access technologies needs to be explicitly articulated, and we need to develop theories of change in context of these diverse perspectives. Our guiding future imaginaries must be informed by other academic fields, such as democratic theory and critical theory, and should be co-developed with social science scholars, legal scholars, civil rights and social justice activists, and artists, among others.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
6. Gearmand
Daemon that manages the work.
Does not do any work.
Accepts a job id and a binary payload from
clients.
Workers keep connections open at all
times.
http://www.flickr.com/photos/andrefromont/4896802557
8. Client
Clients connect to Gearmand and ask for
work to be done.
The client can fire and forget or wait on a
response.
Multiple jobs can be done asynchronously
by workers for one client.
http://www.flickr.com/photos/pitadel/4951801589
10. Workers
Daemonized code
A single worker can do just one job or can
do many jobs.
Does not have to be written using the
same language as the worker.
http://www.flickr.com/photos/nathaninsandiego/5972599772
11. Key Features
• Background jobs
• De-duplication of jobs
• Multiple jobs per client
• High, normal and low priority
• Work will be resubmitted if not completed
12. Background Jobs
• Clients can fire and forget work to be done
• Well suited for data marshalling
• Minimal ability to track the status
13. De-duplication
• Clients provide a unique job id
• If more than one client provides the same
job id, work is done once
• Not a cache, once the job is done, the id is
gone. The work will be done again.
14. Priority
• High, Normal and Low priority options.
• New items are inserted at the end of the
queue based on priority
• Priority is per job type, not global
15. Worker Selection
• Uses the “game show method”
• Workers that do multiple jobs will more
likely get jobs “higher” in their list
• Can appear to be clearing out one queue
over another, but not really a design choice
16. Operational Visibility
• Gearmand can report status about jobs and
workers
• It is only a view of current status, not
historical
• Use outside tools to graph what work was
done when
18. Memcached
Main
Main
Main
Database
Database
Database
Web
Web
Web
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Servers
Servers
Servers
19. Memcached
Main
Main
Main
Database
Database
Database
Web
Web
Web
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Servers
Servers
Servers
This is so 2005!
20. Main
Main
Optimized
Database
Database CRO
Database or In N Main
Main
Proc
ess Main
Database
Database
Database
Web
Web
Web
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Servers
Servers
Servers
21. Main
Main
Optimized
Database
Database CRO
Database or In N Main
Main
Proc
ess Main
Database
Database
Database
Web
Web
Web
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Servers
Servers
Servers
This is so 2009!
22. Main
Main
Optimized
Database
Database
Database
Main
Main
Main
Web
Web Database
Database
Web
Web Database
Servers
Web
Servers
Web
Servers
Web
Servers
Web
Servers
Servers
Servers
Servers
Gearman
Gearman
Gearman
Gearman
Workers
Gearman
Workers
Gearman
Workers
Gearman
Workers
Gearman
Workers
Workers
Workers
Workers
Gearmand
Backend
Events
23. Why Gearman
• Rid us of database spikes
• Changes “feel” realtime
• In the case of an issue, changes can queue
up and happen when things are stable
• Changes can happen asynchronously
24. SMTP Replacement
• Large daily newsletter at 3PM
• Email alerts go out on demand to
thousands of readers as deals are published
• Bottleneck was from double queuing in the
mail queue
• SMTP Server was a single point of failure
25. Web
Web Cron
Web
Web Cron
Cron
Servers
Web
Servers Cron
Jobs
Web
Servers
Web Backend
Jobs
Servers
Web
Servers Jobs
Jobs
Servers
Servers Events
Servers
Gearmand
Gearman
Gearman Gearman
Gearman
Gearman
Gearman Gearman
Gearman
Workers
Gearman
Workers Workers
Gearman
Workers
Gearman
Workers
Gearman Gearman
Workers
Gearman
Workers
Gearman
Workers SMTP Workers
Gearman
Workers SMTP
Workers
Workers Workers
Workers
Workers Server Workers Server
27. Logging Options
• Disk - reliable unless load is high. Can’t be
queried easily in real time.
• MySQL - Can make complex queries
against it. Under high load, data can be lost
• Other - (Spread, Scribe, etc.) New daemons
to manage, learn, scale, etc.
28. Logging via Gearman
• Frontend can fire and forget log data,
returning immediately to the application
• Log data is queued
• Workers can process the logs in any
number of ways
• Log data can be stored any number of ways
29. Web
Web
Web
Web
Servers
Web
Writing Log Data
Servers
Web
Servers
Web
Servers
Web
Servers
Servers
Servers
Servers
Gearmand
Gearman
Gearman Gearman
Gearman
Gearman
Gearman Gearman
Gearman
Workers
Gearman
Workers Workers
Gearman
Workers
Gearman
Workers
Gearman Gearman
Workers
Gearman
Workers
Gearman
Workers MySQL Workers
Gearman
Workers MySQL
Workers
Workers Workers
Workers
Workers Server Workers Server
30. Web
Web Querying Log Data
Web
Web
Servers
Web
Servers
Web
Servers
Web
Servers
(Map Reduce “ish”)
Backend
Servers
Servers
Servers
App
Gearmand
Gearman
Gearman Gearman
Gearman
Gearman
Gearman Gearman
Gearman
Workers
Gearman
Workers Workers
Gearman
Workers
Gearman
Workers
Gearman Gearman
Workers
Gearman
Workers
Gearman
Workers MySQL Workers
Gearman
Workers MySQL
Workers
Workers Workers
Workers
Workers Server Workers Server
34. Normalizing URIs
• Define what parameters a request needs
• sort
• view
• region
• date
• start
• Throw out the rest
• Sort what you need
• Build the real URL
35. Normalizing URIs
• http://dealnews.com/
• http://dealnews.com/?sort=category
• http://dealnews.com/?ref=foobar
• http://dealnews.com/?region=nyc
All become:
http://dealnews.com/?sort=category&view=large®ion=nyc
(assuming the user is in New York)
36. Why normalize/funnel?
• We can now cache the data for this request and
know it is the same data even if the original URI is
different. (cache reuse)
• We can fetch the content only once for all
requests coming in for the content via request
funneling.
37. Why normalize/funnel?
• 72 Unique URIs for the front page in 3 minute spike.
There were only 6 possible real versions. (normalizing)
• Thousands of syndication requests hit the app servers
between 10:43 and 10:45. There were only 86 unique
URIs. (funneling)
38. Request Funneling
Proxy Server
Apache Apache Apache Apache Apache
Child Child Child Child Child
http://dealnews.com/?sort=category&view=large®ion=nyc
Gearmand
Gearman Web
Worker Server
39. What does a worker do?
• Builds a new URI from the input data
• Makes an HTTP request to an app server
• If cacheable, stores the data in the cache
(important!)
• Returns the data (page) to the proxy (via
Gearmand)
40. The Magical
World of Gearman
Brian Moon
dealnews.com
http://brian.moonspot.net/
@brianlmoon
More Information:
http://gearman.org/
Need to run PHP workers?
https://github.com/brianlmoon/GearmanManager